From 5702b7e1203e53eb94db90703513594057e4e897 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 30 Oct 2019 22:25:02 +0100 Subject: [PATCH] Fixed the menu bar check --- shared/js/ui/frames/MenuBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/ui/frames/MenuBar.ts b/shared/js/ui/frames/MenuBar.ts index 4dfaa74a..fc4cf636 100644 --- a/shared/js/ui/frames/MenuBar.ts +++ b/shared/js/ui/frames/MenuBar.ts @@ -510,7 +510,7 @@ namespace top_menu { item = menu.append_item(tr("Visit TeaSpeak forum")); item.click(() => window.open('https://forum.teaspeak.de/', '_blank')); - if(!app.is_web() && typeof(native_actions.show_dev_tools) && native_actions.show_dev_tools()) { + if(!app.is_web() && typeof(native_actions.show_dev_tools) === "function" && native_actions.show_dev_tools()) { menu.append_hr(); item = menu.append_item(tr("Open developer tools")); item.click(() => native_actions.open_dev_tools());