mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-07 00:02:14 +08:00
fix bugs on device menu
This commit is contained in:
parent
038349048b
commit
7c7f4e8da9
@ -14,7 +14,7 @@ nw.MenuItem = function MenuItem(options) {
|
||||
delete options.shortcutName;
|
||||
delete options.shouldEnabled;
|
||||
|
||||
if (options.label) {
|
||||
if (options.label && (typeof options.label === "string")) {
|
||||
|
||||
if (options.label.indexOf("[") !== -1) {
|
||||
let rest = options.label.split("[").slice(1).join("[").trim();
|
||||
|
Loading…
x
Reference in New Issue
Block a user