mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-13 15:54:54 +12:00
remove sidebar support for stable build; prevent sidebar opening at install for dev build
This commit is contained in:
parent
d42abee957
commit
e02360f096
|
@ -61,7 +61,8 @@
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
"16": "img/icon_16.png",
|
"16": "img/icon_16.png",
|
||||||
"128": "img/icon_128.png"
|
"128": "img/icon_128.png"
|
||||||
}
|
},
|
||||||
|
"open_at_install": false
|
||||||
},
|
},
|
||||||
"version": "0.9.9"
|
"version": "0.9.9"
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,11 @@ if match:
|
||||||
webext_manifest['version'] = match.group(1) + builttype
|
webext_manifest['version'] = match.group(1) + builttype
|
||||||
else:
|
else:
|
||||||
webext_manifest['version'] = version
|
webext_manifest['version'] = version
|
||||||
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1459007
|
||||||
|
# By design Firefox opens the sidebar with new installation of
|
||||||
|
# uMatrix when sidebar_action is present in the manifest.
|
||||||
|
# Remove sidebarAction support for stable release of uBO.
|
||||||
|
del webext_manifest['sidebar_action']
|
||||||
|
|
||||||
with open(webext_manifest_file, 'w') as f2:
|
with open(webext_manifest_file, 'w') as f2:
|
||||||
json.dump(webext_manifest, f2, indent=2, separators=(',', ': '), sort_keys=True)
|
json.dump(webext_manifest, f2, indent=2, separators=(',', ': '), sort_keys=True)
|
||||||
|
|
Loading…
Reference in a new issue