mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
[PMkit] Rely on MOZ_WEBEXTENSIONS to include 'sdk/webextension'
This commit is contained in:
parent
d87fc5357d
commit
6074a73015
2 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||
]
|
||||
|
|
|
|||
2
toolkit/jetpack/sdk/addon/bootstrap.js
vendored
2
toolkit/jetpack/sdk/addon/bootstrap.js
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue