[DevTools] Use preprocessing for: a global variable "gDevTools" and the context menu - a function "Inspect Element"

Follow up: #106
This commit is contained in:
janekptacijarabaci 2018-04-08 21:50:16 +02:00 committed by Roy Tam
commit 38abddf0e6
3 changed files with 5 additions and 1 deletions

View file

@ -53,8 +53,10 @@ Cu.import("resource://gre/modules/NotificationDB.jsm");
["UpdateUtils", "resource://gre/modules/UpdateUtils.jsm"],
["Weave", "resource://services-sync/main.js"],
["fxAccounts", "resource://gre/modules/FxAccounts.jsm"],
#ifdef MOZ_DEVTOOLS
// Note: Do not delete! It is used for: base/content/nsContextMenu.js
["gDevTools", "resource://devtools/client/framework/gDevTools.jsm"],
#endif
["webrtcUI", "resource:///modules/webrtcUI.jsm", ]
].forEach(([name, resource]) => XPCOMUtils.defineLazyModuleGetter(this, name, resource));