瀏覽代碼

fixed profiles length testing

Gildas 7 年之前
父節點
當前提交
4f193d0ae1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      extension/ui/bg/ui-menu.js

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

@@ -104,7 +104,7 @@ singlefile.ui.menu = (() => {
 					type: "separator"
 				});
 			}
-			if (config.profiles.length > 1) {
+			if (Object.keys(config.profiles).length > 1) {
 				browser.menus.create({
 					id: MENU_ID_SELECT_PROFILE,
 					title: browser.i18n.getMessage("menuSelectProfile"),