Explorar el Código

fixed context menu displaying issue after restart

Gildas hace 7 años
padre
commit
b6c085274b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      extension/ui/bg/ui.js

+ 1 - 1
extension/ui/bg/ui.js

@@ -183,7 +183,7 @@ singlefile.ui = (() => {
 
 	async function initContextMenu() {
 		if (BROWSER_MENUS_API_SUPPORTED) {
-			browser.runtime.onInstalled.addListener(refreshContextMenu);
+			refreshContextMenu();
 			browser.menus.onClicked.addListener(async (event, tab) => {
 				if (event.menuItemId == MENU_ID_SAVE_PAGE) {
 					processTab(tab);