diff options
Diffstat (limited to 'extension.js')
-rw-r--r-- | extension.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extension.js b/extension.js index bc89de1..e3284e7 100644 --- a/extension.js +++ b/extension.js @@ -94,14 +94,6 @@ const ISS_Above = new GObject.Class({ this.connect('processed_data', Lang.bind(this, this.processResult)); }, - run: function() { - this.getISScoords(function () { - print('run: processing new coords'); - this.task_queue = 1; - this.processResult(); - }); - }, - getISScoords: function (cb_process) { let self = this; let iss_api = Gio.file_new_for_uri(API_URL); @@ -117,6 +109,14 @@ const ISS_Above = new GObject.Class({ }); }, + run: function() { + this.getISScoords(function () { + print('run: processing new coords'); + this.task_queue = 1; + this.processResult(); + }); + }, + onLocationUpdated: function (proxy, sender, [oldPath, newPath]) { let geoclueLocation = new LocationProxy(Gio.DBus.system, "org.freedesktop.GeoClue2", |