summaryrefslogtreecommitdiff
path: root/toolkit/jetpack
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-20 22:45:23 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-20 22:45:23 +0300
commit3a7b60b3f4e576cab9a382c738548b7151a57441 (patch)
treec2b77168eebd05432e38e9ca65ba04508f247c73 /toolkit/jetpack
parent0fe0baf2cca31ced1eec55eddef28290c52314e5 (diff)
downloaduxp-3a7b60b3f4e576cab9a382c738548b7151a57441.tar.gz
[PMkit] Rely on MOZ_WEBEXTENSIONS to include 'sdk/webextension'
Diffstat (limited to 'toolkit/jetpack')
-rw-r--r--toolkit/jetpack/moz.build2
-rw-r--r--toolkit/jetpack/sdk/addon/bootstrap.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/jetpack/moz.build b/toolkit/jetpack/moz.build
index 1e1b48f3d4..2e5dbe5e81 100644
--- a/toolkit/jetpack/moz.build
+++ b/toolkit/jetpack/moz.build
@@ -128,7 +128,7 @@ EXTRA_JS_MODULES.commonjs += [
'test.js',
]
-if not CONFIG['MC_PALEMOON']:
+if CONFIG['MOZ_WEBEXTENSIONS']:
EXTRA_JS_MODULES.commonjs.sdk += [
'sdk/webextension.js',
]
diff --git a/toolkit/jetpack/sdk/addon/bootstrap.js b/toolkit/jetpack/sdk/addon/bootstrap.js
index 9eb5efac77..6c5827f1eb 100644
--- a/toolkit/jetpack/sdk/addon/bootstrap.js
+++ b/toolkit/jetpack/sdk/addon/bootstrap.js
@@ -134,7 +134,7 @@ Bootstrap.prototype = {
const main = command === "test" ? "sdk/test/runner" : null;
const prefsURI = `${baseURI}defaults/preferences/prefs.js`;
-#ifndef MC_PALEMOON
+#ifdef MOZ_WEBEXTENSIONS
// Init the 'sdk/webextension' module from the bootstrap addon parameter.
require("sdk/webextension").initFromBootstrapAddonParam(addon);
#endif