We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
menus.toolbar.refresh()
1 parent f1329aa commit bfdb063Copy full SHA for bfdb063
assets/js/components/chatbot/menus.js
@@ -143,7 +143,8 @@ window.menus = {
143
refresh() { // requires <GM_unregisterMenuCommand|log>
144
if (typeof GM_unregisterMenuCommand == 'undefined')
145
return log.debug('GM_unregisterMenuCommand not supported.')
146
- for (const id of this.entryIDs) { GM_unregisterMenuCommand(id) } this.register()
+ this.entryIDs.forEach(id => GM_unregisterMenuCommand(id))
147
+ this.register()
148
},
149
150
register() { // requires <app|config|env|modals|settings|toggle>
0 commit comments