Skip to content

Commit

Permalink
fix the bug that firefox android cant start
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-top committed Sep 15, 2024
1 parent 0b893c8 commit bc69662
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Proxy SwitchyOmega 3 (ZeroOmega)",
"version": "3.3.12",
"version": "3.3.13",
"description": "__MSG_manifest_app_description__",
"icons": {
"16": "img/icons/omega-action-16.png",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ chrome.runtime.onStartup.addListener ->



chrome.contextMenus.onClicked.addListener((info, tab) ->
chrome.contextMenus?.onClicked.addListener((info, tab) ->
options?.ready.then( ->
switch info.menuItemId
when 'inspectPage', 'inspectLink', 'inspectElement', 'inspectFrame'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ globalThis.zeroDetectModeCB = null
globalThis.startupCheck = undefined

initContextMenu = ->
return unless chrome.contextMenus
chrome.contextMenus.removeAll()
chrome.contextMenus.create({
id: 'enableQuickSwitch'
Expand All @@ -23,7 +24,7 @@ initContextMenu = ->

initContextMenu()

chrome.contextMenus.onClicked.addListener((info, tab) ->
chrome.contextMenus?.onClicked.addListener((info, tab) ->
switch info.menuItemId
when 'reportIssue'
OmegaDebug.reportIssue()
Expand Down

0 comments on commit bc69662

Please sign in to comment.