From 5eecd46d3ec628a9588836afda963779aafc9a0b Mon Sep 17 00:00:00 2001 From: WardPearce Date: Thu, 19 Sep 2024 14:58:31 +1200 Subject: [PATCH] Remove code --- materialious/src/routes/(app)/+layout.svelte | 24 -------------------- 1 file changed, 24 deletions(-) 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();