Fix menu boolean check

This commit is contained in:
hensm
2019-08-16 07:47:15 +01:00
parent 082436c394
commit 87e92d8fcc

View File

@@ -220,7 +220,7 @@ async function initMenus () {
// Only rebuild menus if whitelist menu present
// WebExt typings are broken again here, so ugly casting
const menuIds = info.menuIds as unknown as number[];
if (menuIds.includes(menuIdWhitelist as number)) {
if (!menuIds.includes(menuIdWhitelist as number)) {
return;
}