Merge pull request #19 from gomi1992/master

FIX: Option refreshOnProfileChange not working.
This commit is contained in:
苏滋文 2024-08-12 21:25:39 +08:00 committed by GitHub
commit ba5c9adb6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -311,7 +311,7 @@ encodeError = (obj) ->
obj
refreshActivePageIfEnabled = ->
return if localStorage['omega.local.refreshOnProfileChange'] == 'false'
return if zeroLocalStorage['omega.local.refreshOnProfileChange'] == 'false'
chrome.tabs.query {active: true, lastFocusedWindow: true}, (tabs) ->
url = tabs[0].pendingUrl or tabs[0].url
return if not url