diff options
author | gorhill <rhill@raymondhill.net> | 2015-07-28 08:54:12 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-07-28 08:54:12 -0400 |
commit | 04d11d25b60ad629c6a868e1e6a1dce025823fc0 (patch) | |
tree | 5d29f49bbeea1da081aaff5585c4954d0458d7be | |
parent | b190f0b183eedad0cca3258fc0f8968da22aae95 (diff) | |
download | uBlock-04d11d25b60ad629c6a868e1e6a1dce025823fc0.zip uBlock-04d11d25b60ad629c6a868e1e6a1dce025823fc0.tar.gz uBlock-04d11d25b60ad629c6a868e1e6a1dce025823fc0.tar.bz2 |
minor code review
-rw-r--r-- | platform/firefox/bootstrap.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/firefox/bootstrap.js b/platform/firefox/bootstrap.js index fdca647..23ba6f0 100644 --- a/platform/firefox/bootstrap.js +++ b/platform/firefox/bootstrap.js @@ -26,7 +26,7 @@ /******************************************************************************/ -const {classes: Cc} = Components; +const {classes: Cc, interfaces: Ci} = Components; // Accessing the context of the background page: // var win = Services.appShell.hiddenDOMWindow.document.querySelector('iframe[src*=ublock0]').contentWindow; @@ -37,7 +37,7 @@ const hostName = 'ublock0'; const restartListener = { get messageManager() { return Cc['@mozilla.org/parentprocessmessagemanager;1'] - .getService(Components.interfaces.nsIMessageListenerManager); + .getService(Ci.nsIMessageListenerManager); }, receiveMessage: function() { @@ -54,7 +54,7 @@ function startup(data, reason) { } let appShell = Cc['@mozilla.org/appshell/appShellService;1'] - .getService(Components.interfaces.nsIAppShellService); + .getService(Ci.nsIAppShellService); let onReady = function(e) { if ( e ) { @@ -99,7 +99,7 @@ function startup(data, reason) { } let ww = Cc['@mozilla.org/embedcomp/window-watcher;1'] - .getService(Components.interfaces.nsIWindowWatcher); + .getService(Ci.nsIWindowWatcher); ww.registerNotification({ observe: function(win, topic) { @@ -144,7 +144,7 @@ function shutdown(data, reason) { function install(/*aData, aReason*/) { // https://bugzil.la/719376 Cc['@mozilla.org/intl/stringbundle;1'] - .getService(Components.interfaces.nsIStringBundleService) + .getService(Ci.nsIStringBundleService) .flushBundles(); } |