diff options
| author | mrmr1993 | 2017-10-19 16:54:31 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2017-10-19 16:54:31 +0100 | 
| commit | 701c2ab36c880276525c81b48029deb8620ec307 (patch) | |
| tree | 99ff8b709c304d18f192d4015d931bfa49f432db /background_scripts/main.coffee | |
| parent | 8f31f1b5c3e6b731369973dc44be98be9f356339 (diff) | |
| download | vimium-701c2ab36c880276525c81b48029deb8620ec307.tar.bz2 | |
(FF android) Guard against undefined chrome.windows
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 97d8fa65..2bbbd85d 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}) -> @@ -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. | 
