examples: add modem watcher example in JS
This commit is contained in:
11
examples/modem-watcher-javascript/main.js
Normal file
11
examples/modem-watcher-javascript/main.js
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
const Mainloop = imports.mainloop;
|
||||
const GLib = imports.gi.GLib;
|
||||
|
||||
const modemWatcher = imports.modemWatcher;
|
||||
|
||||
function start() {
|
||||
let watcher = new modemWatcher.ModemWatcher();
|
||||
|
||||
Mainloop.run();
|
||||
}
|
Reference in New Issue
Block a user