summaryrefslogtreecommitdiffstats
path: root/toolkit/components/webextensions/ext-c-backgroundPage.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 07:17:50 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 07:17:50 +0100
commite59c00a5c59aefe2a408eb78509ef3afaf3658f8 (patch)
tree40b8c8bd311ff17abb81edd6f24bb6ad3ce9b9b8 /toolkit/components/webextensions/ext-c-backgroundPage.js
parentabf60058584772437a317fbc27ea32cbda4a07cb (diff)
downloadUXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar
UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar.gz
UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar.lz
UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.tar.xz
UXP-e59c00a5c59aefe2a408eb78509ef3afaf3658f8.zip
DevTools - Browser Console - restore sessions
https://github.com/MoonchildProductions/moebius/pull/112
Diffstat (limited to 'toolkit/components/webextensions/ext-c-backgroundPage.js')
-rw-r--r--toolkit/components/webextensions/ext-c-backgroundPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/webextensions/ext-c-backgroundPage.js b/toolkit/components/webextensions/ext-c-backgroundPage.js
index b5074dd9a..ca446ce79 100644
--- a/toolkit/components/webextensions/ext-c-backgroundPage.js
+++ b/toolkit/components/webextensions/ext-c-backgroundPage.js
@@ -9,8 +9,8 @@ global.initializeBackgroundPage = (contentWindow) => {
if (!alertDisplayedWarning) {
require("devtools/client/framework/devtools-browser");
- let hudservice = require("devtools/client/webconsole/hudservice");
- hudservice.openBrowserConsoleOrFocus();
+ let {HUDService} = require("devtools/client/webconsole/hudservice");
+ HUDService.openBrowserConsoleOrFocus();
contentWindow.console.warn("alert() is not supported in background windows; please use console.log instead.");