修复 tampermonkey.js 中的空指针异常问题

scripts
王良 2 months ago
parent 5c5d88333a
commit a325f1b571

@ -389,7 +389,7 @@
// 注册菜单 // 注册菜单
api.GM_registerMenuCommand = (name, callback, options_or_accessKey) => { api.GM_registerMenuCommand = (name, callback, options_or_accessKey) => {
const options = typeof options_or_accessKey === "string" ? { accessKey: options_or_accessKey } : options_or_accessKey; const options = typeof options_or_accessKey === "string" ? { accessKey: options_or_accessKey } : (options_or_accessKey || {});
// 生成菜单ID // 生成菜单ID
let menuCmdId; let menuCmdId;

Loading…
Cancel
Save