diff options
Diffstat (limited to 'melodactyl')
-rw-r--r-- | melodactyl/content/config.js | 6 | ||||
-rw-r--r-- | melodactyl/content/library.js | 2 | ||||
-rw-r--r-- | melodactyl/content/player.js | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/melodactyl/content/config.js b/melodactyl/content/config.js index afa74709..c5a1a4bd 100644 --- a/melodactyl/content/config.js +++ b/melodactyl/content/config.js @@ -172,7 +172,7 @@ const Config = Module("config", ConfigBase, { this.showServicePane(true); else { let pane = document.getElementById(id); - let manager = services.get("displayPaneManager"); + let manager = services.displayPaneManager; let paneinfo = manager.getPaneInfo(pane._lastURL.stringValue); if (!paneinfo) @@ -272,12 +272,12 @@ const Config = Module("config", ConfigBase, { "boolean", true, { setter: function (value) { - const ioService = services.get("io"); + const ioService = services.io; ioService.offline = !value; prefs.set("browser.offline", ioService.offline); return value; }, - getter: function () !services.get("io").offline + getter: function () !services.io.offline }); }, services: function () { diff --git a/melodactyl/content/library.js b/melodactyl/content/library.js index 4d7c0bbe..be884741 100644 --- a/melodactyl/content/library.js +++ b/melodactyl/content/library.js @@ -49,7 +49,7 @@ const Library = Module("library", { * @returns {string[]} */ getTracks: function getTracks(artist, album) { - let properties = services.create("mutablePropertyArray"); + let properties = services.MutablePropertyArray(); properties.appendProperty(SBProperties.artistName, artist); properties.appendProperty(SBProperties.albumName, album); diff --git a/melodactyl/content/player.js b/melodactyl/content/player.js index 6875f61c..916eef7c 100644 --- a/melodactyl/content/player.js +++ b/melodactyl/content/player.js @@ -370,7 +370,7 @@ const Player = Module("player", { */ getMediaPages: function getMediaPages() { let list = SBGetBrowser().currentMediaPage.mediaListView.mediaList; - let pages = services.get("mediaPageManager").getAvailablePages(list); + let pages = services.mediaPageManager.getAvailablePages(list); return ArrayConverter.JSArray(pages).map(function (page) page.QueryInterface(Ci.sbIMediaPageInfo)); }, @@ -383,7 +383,7 @@ const Player = Module("player", { * @param {sbIMediaView} view */ loadMediaPage: function loadMediaPage(page, list, view) { - services.get("mediaPageManager").setPage(list, page); + services.mediaPageManager.setPage(list, page); SBGetBrowser().loadMediaList(list, null, null, view, null); }, @@ -409,7 +409,7 @@ const Player = Module("player", { */ sortBy: function sortBy(field, ascending) { let order = ascending ? "a" : "d"; - let properties = services.create("mutablePropertyArray"); + let properties = services.MutablePropertyArray(); properties.strict = false; switch (field) { @@ -594,7 +594,7 @@ const Player = Module("player", { commands.add(["qu[eue]"], "Queue tracks by artist/album/track", function (args) { - let properties = services.create("mutablePropertyArray"); + let properties = services.MutablePropertyArray(); // args switch (args.length) { |