mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
fix the bug that firefox android cant start
This commit is contained in:
parent
0b893c8a00
commit
bc69662911
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Proxy SwitchyOmega 3 (ZeroOmega)",
|
"name": "Proxy SwitchyOmega 3 (ZeroOmega)",
|
||||||
"version": "3.3.12",
|
"version": "3.3.13",
|
||||||
"description": "__MSG_manifest_app_description__",
|
"description": "__MSG_manifest_app_description__",
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "img/icons/omega-action-16.png",
|
"16": "img/icons/omega-action-16.png",
|
||||||
|
@ -16,7 +16,7 @@ chrome.runtime.onStartup.addListener ->
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
chrome.contextMenus.onClicked.addListener((info, tab) ->
|
chrome.contextMenus?.onClicked.addListener((info, tab) ->
|
||||||
options?.ready.then( ->
|
options?.ready.then( ->
|
||||||
switch info.menuItemId
|
switch info.menuItemId
|
||||||
when 'inspectPage', 'inspectLink', 'inspectElement', 'inspectFrame'
|
when 'inspectPage', 'inspectLink', 'inspectElement', 'inspectFrame'
|
||||||
|
@ -6,6 +6,7 @@ globalThis.zeroDetectModeCB = null
|
|||||||
globalThis.startupCheck = undefined
|
globalThis.startupCheck = undefined
|
||||||
|
|
||||||
initContextMenu = ->
|
initContextMenu = ->
|
||||||
|
return unless chrome.contextMenus
|
||||||
chrome.contextMenus.removeAll()
|
chrome.contextMenus.removeAll()
|
||||||
chrome.contextMenus.create({
|
chrome.contextMenus.create({
|
||||||
id: 'enableQuickSwitch'
|
id: 'enableQuickSwitch'
|
||||||
@ -23,7 +24,7 @@ initContextMenu = ->
|
|||||||
|
|
||||||
initContextMenu()
|
initContextMenu()
|
||||||
|
|
||||||
chrome.contextMenus.onClicked.addListener((info, tab) ->
|
chrome.contextMenus?.onClicked.addListener((info, tab) ->
|
||||||
switch info.menuItemId
|
switch info.menuItemId
|
||||||
when 'reportIssue'
|
when 'reportIssue'
|
||||||
OmegaDebug.reportIssue()
|
OmegaDebug.reportIssue()
|
||||||
|
Loading…
Reference in New Issue
Block a user