mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +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) {
|
if ("onShoutcut" in target) {
|
||||||
console.log("Trying execute onShoutcut:", FN);
|
console.log("Trying execute onShoutcut:", FN);
|
||||||
|
while (true) {
|
||||||
|
try {
|
||||||
target.onShoutcut(args.slice(1));
|
target.onShoutcut(args.slice(1));
|
||||||
|
} catch (e) {
|
||||||
|
console.error("onShoutcut ->", e.message);
|
||||||
|
target.onShoutcut(args.slice(1));
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.error("onShoutcut not defined");
|
console.error("onShoutcut not defined");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user