File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments