aboutsummaryrefslogtreecommitdiff
path: root/scenario
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-05 17:29:18 +0200
committerGitHub <noreply@github.com>2021-08-05 17:29:18 +0200
commitb865b8f6586ffd4554cdfe45c739030afc882acd (patch)
tree37bcdf6575d8764b7367f34544658886879c0c5e /scenario
parent79edea37d15f88f086f7775bbbce64a57535b043 (diff)
parent7b541bbf2a8d754d26511895801d90f02cdf99f7 (diff)
downloadkartik-client-b865b8f6586ffd4554cdfe45c739030afc882acd.tar.gz
kartik-client-b865b8f6586ffd4554cdfe45c739030afc882acd.tar.bz2
kartik-client-b865b8f6586ffd4554cdfe45c739030afc882acd.zip
Merge pull request #4 from Minteck-Projects/devel
Branching 21.08
Diffstat (limited to 'scenario')
-rw-r--r--scenario/client.js18
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});
+}