Remove code
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user