Skip to content

Commit 21f3e67

Browse files
Add message type to show message in HUD.
1 parent 17a3a6e commit 21f3e67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

background_scripts/main.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ TabOperations =
130130
toggleMuteTab = do ->
131131
muteTab = (tab) -> chrome.tabs.update tab.id, {muted: !tab.mutedInfo.muted}
132132

133-
({tab: currentTab, registryEntry}) ->
133+
({tab: currentTab, registryEntry, tabId, frameId}) ->
134134
if registryEntry.options.all? or registryEntry.options.other?
135135
# If there are any audible, unmuted tabs, then we mute them; otherwise we unmute any muted tabs.
136136
chrome.tabs.query {audible: true}, (tabs) ->

content_scripts/vimium_frontend.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ initializePreDomReady = ->
131131
runInTopFrame: ({sourceFrameId, registryEntry}) ->
132132
NormalModeCommands[registryEntry.command] sourceFrameId, registryEntry if DomUtils.isTopFrame()
133133
linkHintsMessage: (request) -> HintCoordinator[request.messageType] request
134+
showMessage: (request) -> HUD.showForDuration request.message, 2000
134135

135136
chrome.runtime.onMessage.addListener (request, sender, sendResponse) ->
136137
request.isTrusted = true

0 commit comments

Comments
 (0)