diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
commit | d5a620cf09b835db2bccd99556525c90b458719f (patch) | |
tree | 1507f96be0413bd20026878890b0c1ad438e51d2 /scenario | |
parent | 44210691ee8444509ac466a362337af77f2bcd49 (diff) | |
download | kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.gz kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.bz2 kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.zip |
i18n for 21.08
Diffstat (limited to 'scenario')
-rw-r--r-- | scenario/client.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scenario/client.js b/scenario/client.js index 38412c5..68203e3 100644 --- a/scenario/client.js +++ b/scenario/client.js @@ -1,9 +1,9 @@ -function scenar(ns, emote, cb) { - if (!require('@electron/remote').getCurrentWindow().voice) { return; }; - - min = 0; - max = lang.scenario[ns].length - 1; - id = Math.floor(Math.random() * (max - min + 1) + min); - - require('@electron/remote').getCurrentWindow().webContents.send("scenario", {message:lang.scenario[ns][id],lang:lp,namespace:ns,id:id,emote:emote,callback:cb}); -} +function scenar(ns, emote, cb) {
+ if (!require('@electron/remote').getCurrentWindow().voice) { return; };
+
+ min = 0;
+ max = lang.scenario[ns].length - 1;
+ id = Math.floor(Math.random() * (max - min + 1) + min);
+
+ require('@electron/remote').getCurrentWindow().webContents.send("scenario", {message:lang.scenario[ns][id],lang:lp,namespace:ns,id:id,emote:emote,callback:cb});
+}
|