From 81031a20944b7ff8b9d13ec28247bc36b57a8eac Mon Sep 17 00:00:00 2001 From: Adam Argyle Date: Fri, 22 Apr 2022 10:28:17 -0700 Subject: [PATCH] fixes #556 --- extension/visbug.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extension/visbug.js b/extension/visbug.js index b6200faf..83274802 100644 --- a/extension/visbug.js +++ b/extension/visbug.js @@ -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]) {