mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-13 00:28:12 -04:00
parent
f42ae975a7
commit
811be9102f
@ -76,6 +76,7 @@ actionForUrl = (url) ->
|
|||||||
if result[0] == 'DIRECT'
|
if result[0] == 'DIRECT'
|
||||||
details += chrome.i18n.getMessage('browserAction_directResult')
|
details += chrome.i18n.getMessage('browserAction_directResult')
|
||||||
details += '\n'
|
details += '\n'
|
||||||
|
direct = true
|
||||||
else
|
else
|
||||||
details += "#{result[0]}\n"
|
details += "#{result[0]}\n"
|
||||||
else if typeof result[1] == 'string'
|
else if typeof result[1] == 'string'
|
||||||
@ -106,13 +107,12 @@ actionForUrl = (url) ->
|
|||||||
profileColor = current.color
|
profileColor = current.color
|
||||||
|
|
||||||
icon = null
|
icon = null
|
||||||
if profile.name == current.name and options.isCurrentProfileStatic()
|
if direct
|
||||||
if direct
|
resultColor = options.profile('direct').color
|
||||||
resultColor = options.profile('direct').color
|
profileColor = profile.color
|
||||||
profileColor = profile.color
|
else if profile.name == current.name and options.isCurrentProfileStatic()
|
||||||
else
|
resultColor = profileColor = profile.color
|
||||||
resultColor = profileColor = profile.color
|
icon = drawIcon(profile.color)
|
||||||
icon = drawIcon(profile.color)
|
|
||||||
else
|
else
|
||||||
resultColor = profile.color
|
resultColor = profile.color
|
||||||
profileColor = current.color
|
profileColor = current.color
|
||||||
@ -236,8 +236,13 @@ options.currentProfileChanged = (reason) ->
|
|||||||
title = message + '\n' + title
|
title = message + '\n' + title
|
||||||
options.setBadge()
|
options.setBadge()
|
||||||
|
|
||||||
|
if not current.name or not OmegaPac.Profiles.isInclusive(current)
|
||||||
|
icon = drawIcon(current.color)
|
||||||
|
else
|
||||||
|
icon = drawIcon(options.profile('direct').color, current.color)
|
||||||
|
|
||||||
tabs.resetAll(
|
tabs.resetAll(
|
||||||
icon: drawIcon(current.color)
|
icon: icon
|
||||||
title: title
|
title: title
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user