diff options
| author | Stephen Blott | 2017-10-29 14:50:07 +0000 |
|---|---|---|
| committer | GitHub | 2017-10-29 14:50:07 +0000 |
| commit | 0c58201095059edd7b8b6e7e76792376c4bd8b3d (patch) | |
| tree | dec1ea7a531efc6dbee4217a14b4f1d8a2f92cd7 /background_scripts/main.coffee | |
| parent | 9d5227399acba98a99830e55cbcc1ebbb6ee4b54 (diff) | |
| parent | dd961bbff7ae6d7474fe1455a6999c66f77b1cb4 (diff) | |
| download | vimium-0c58201095059edd7b8b6e7e76792376c4bd8b3d.tar.bz2 | |
Merge pull request #2733 from mrmr1993/ff-android
Minimal Firefox Android support
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 97d8fa65..725766e6 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -148,7 +148,7 @@ toggleMuteTab = do -> # selectSpecificTab = (request) -> chrome.tabs.get(request.id, (tab) -> - chrome.windows.update(tab.windowId, { focused: true }) + chrome.windows?.update(tab.windowId, { focused: true }) chrome.tabs.update(request.id, { active: true })) moveTab = ({count, tab, registryEntry}) -> @@ -324,7 +324,7 @@ Frames = enabledState = Exclusions.isEnabledForUrl request.url if request.frameIsFocused - chrome.browserAction.setIcon tabId: tabId, imageData: do -> + chrome.browserAction.setIcon? tabId: tabId, imageData: do -> enabledStateIcon = if not enabledState.isEnabledForUrl DISABLED_ICON @@ -449,7 +449,7 @@ chrome.tabs.onRemoved.addListener (tabId) -> delete cache[tabId] for cache in [frameIdsForTab, urlForTab, portsForTab, HintCoordinator.tabState] chrome.storage.local.get "findModeRawQueryListIncognito", (items) -> if items.findModeRawQueryListIncognito - chrome.windows.getAll null, (windows) -> + chrome.windows?.getAll null, (windows) -> for window in windows return if window.incognito # There are no remaining incognito-mode tabs, and findModeRawQueryListIncognito is set. |
