Skip to content

Commit 00ec657

Browse files
committed
chore: default gecko id
1 parent e7ba8ce commit 00ec657

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

scripts/browser-config/get-manifest.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,24 @@ function getManifest(browser, options) {
8888
}
8989

9090
if (config.BROWSER_TYPE === 'firefox') {
91-
if (packer === 'amo') {
92-
const id = extensionConfig.amo.find(x => x.browser === browser).id;
91+
if (packer === 'xpi') {
92+
const id = extensionConfig.xpi.find(x => x.browser === browser).id;
9393
manifest.browser_specific_settings = {
9494
gecko: {
9595
id,
9696
strict_min_version: '113.0',
97+
update_url:
98+
config.MANIFEST_VER === 'v2'
99+
? 'https://ext.firefoxcn.net/header-editor/install/update.json'
100+
: 'https://ext.firefoxcn.net/header-editor/install-v3/update.json',
97101
},
98102
};
99103
} else {
100-
const id = extensionConfig.xpi.find(x => x.browser === browser).id;
104+
const id = extensionConfig.amo.find(x => x.browser === browser).id;
101105
manifest.browser_specific_settings = {
102106
gecko: {
103107
id,
104108
strict_min_version: '113.0',
105-
update_url:
106-
config.MANIFEST_VER === 'v2'
107-
? 'https://ext.firefoxcn.net/header-editor/install/update.json'
108-
: 'https://ext.firefoxcn.net/header-editor/install-v3/update.json',
109109
},
110110
};
111111
}

0 commit comments

Comments
 (0)