Skip to content

Commit

Permalink
fixes #556
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink committed Apr 22, 2022
1 parent eb62c95 commit 81031a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extension/visbug.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ var platform = typeof browser === 'undefined'
? chrome
: browser

var commands = platform.commands.getAll(cmds => {
var [cmd] = cmds
if (!cmd) return

platform.browserAction.setTitle({
title: `Click or press ${cmd.shortcut} to launch VisBug`,
})
})

const toggleIn = ({id:tab_id}) => {
// toggle out: it's currently loaded and injected
if (state.loaded[tab_id] && state.injected[tab_id]) {
Expand Down

0 comments on commit 81031a2

Please sign in to comment.