aboutsummaryrefslogtreecommitdiff
path: root/views/script/win_play.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/script/win_play.js')
-rw-r--r--views/script/win_play.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/script/win_play.js b/views/script/win_play.js
new file mode 100644
index 0000000..848b625
--- /dev/null
+++ b/views/script/win_play.js
@@ -0,0 +1,12 @@
+if (location.search === "?sp") {
+ if ((location.hash.substr(4) - 1 + 2) == 1) {
+ require('@electron/remote').getCurrentWindow().dstate = lang.discord.win[0];
+ require('@electron/remote').getCurrentWindow().ddetails = lang.discord.game[1];
+ } else {
+ require('@electron/remote').getCurrentWindow().dstate = lang.discord.win[1];
+ require('@electron/remote').getCurrentWindow().ddetails = lang.discord.game[1];
+ }
+} else {
+ require('@electron/remote').getCurrentWindow().dstate = lang.discord.win[0];
+ require('@electron/remote').getCurrentWindow().ddetails = lang.discord.game[2];
+} \ No newline at end of file