examples: add modem watcher example in JS

This commit is contained in:
Aleksander Morgado
2014-04-11 09:27:51 +02:00
parent ebff76cfaa
commit ae99c452eb
7 changed files with 149 additions and 1 deletions

View 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();
}