Fixed the menu bar check

This commit is contained in:
WolverinDEV 2019-10-30 22:25:02 +01:00
parent 951aad0d1f
commit 5702b7e120

View file

@ -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());