Update shoutcut.js

This commit is contained in:
Namhyeon Go 2021-08-17 00:34:46 +09:00 committed by GitHub
parent 0cd8f24182
commit 72d8e8bcb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}