diff --git a/materialious/src/routes/(app)/+layout.svelte b/materialious/src/routes/(app)/+layout.svelte index 9bd06955..72dc2ab2 100644 --- a/materialious/src/routes/(app)/+layout.svelte +++ b/materialious/src/routes/(app)/+layout.svelte @@ -123,30 +123,6 @@ notifications = feed.notifications; } - function channelListener(msg) { - console.log('[cordova] received:' + msg); - } - - function startupCallback(err) { - if (err) { - console.log(err); - } else { - console.log('Node.js Mobile Engine Started'); - nodejs.channel.send('Hello from Cordova!'); - } - } - - function startNodeProject() { - nodejs.channel.setListener(channelListener); - nodejs.start('main.js', startupCallback); - // To disable the stdout/stderr redirection to the Android logcat: - // nodejs.start('main.js', startupCallback, { redirectOutputToLogcat: false }); - } - - addEventListener('deviceready', () => { - startNodeProject(); - }); - onMount(async () => { ui();