aboutsummaryrefslogtreecommitdiff
path: root/views/script/win_play.js
blob: 848b6251fb41df69d690736e3652f43e4cf2ef62 (plain)
1
2
3
4
5
6
7
8
9
10
11
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];
}