fix firefox startupProfileName doesn't work problem.

This commit is contained in:
suziwen 2024-08-14 08:37:42 +08:00
parent 748710a659
commit 0be8c2733e

View File

@ -1,4 +1,3 @@
zeroBackground = (zeroStorage, opts) ->
OmegaTargetCurrent = Object.create(OmegaTargetChromium)
Promise = OmegaTargetCurrent.Promise
Promise.longStackTraces()
@ -14,6 +13,9 @@ zeroBackground = (zeroStorage, opts) ->
globalThis.isBrowserRestart = true
dispName = (name) -> chrome.i18n.getMessage('profile_' + name) || name
zeroBackground = (zeroStorage, opts) ->
unhandledPromises = []
unhandledPromisesId = []
unhandledPromisesNextId = 1
@ -69,7 +71,6 @@ zeroBackground = (zeroStorage, opts) ->
isHidden = (name) -> (name.charCodeAt(0) == charCodeUnderscore and
name.charCodeAt(1) == charCodeUnderscore)
dispName = (name) -> chrome.i18n.getMessage('profile_' + name) || name
actionForUrl = (url) ->
options.ready.then(->