Remove code

This commit is contained in:
WardPearce
2024-09-19 14:58:31 +12:00
parent 37b8d6d7a9
commit 5eecd46d3e
@@ -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();