mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update shoutcut.js
This commit is contained in:
parent
0cd8f24182
commit
72d8e8bcb0
|
@ -12,7 +12,14 @@ exports.main = function(args) {
|
|||
|
||||
if ("onShoutcut" in target) {
|
||||
console.log("Trying execute onShoutcut:", FN);
|
||||
while (true) {
|
||||
try {
|
||||
target.onShoutcut(args.slice(1));
|
||||
} catch (e) {
|
||||
console.error("onShoutcut ->", e.message);
|
||||
target.onShoutcut(args.slice(1));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.error("onShoutcut not defined");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user