aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authormrmr19932014-11-23 11:59:12 +0000
committermrmr19932014-11-23 11:59:12 +0000
commit28ea5f9d88831efddc42b69cdf886cb4024db08e (patch)
treec00a802271d6913f41bd4b98a849f5464d6ddb9c /background_scripts
parent544b9f603b2382a9afedffc544c63e19b9909549 (diff)
downloadvimium-28ea5f9d88831efddc42b69cdf886cb4024db08e.tar.bz2
Small cosmetic changes
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 9b9d4bc2..0c4e0281 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -388,7 +388,7 @@ chrome.tabs.onUpdated.addListener (tabId, changeInfo, tab) ->
code: Settings.get("userDefinedLinkHintCss")
runAt: "document_start"
chrome.tabs.insertCSS tabId, cssConf, -> chrome.runtime.lastError
- updateOpenTabs(tab) if "url" in changeInfo
+ updateOpenTabs(tab) if changeInfo.url?
updateActiveState(tabId)
chrome.tabs.onAttached.addListener (tabId, attachedInfo) ->
@@ -608,7 +608,7 @@ unregisterFrame = (request, sender) ->
return unless frames?
if request.is_top # The whole tab is closing, so we can drop the frames list.
- updateOpenTabs(sender.tab)
+ updateOpenTabs sender.tab
else
index = getFrameIndex frames, request.frameId
frames.splice index, 1