mirror of
https://github.com/EndPwnArchive/cynergy.git
synced 2024-08-14 22:46:57 +00:00
more canary/ptb fixes
This commit is contained in:
parent
026c392b70
commit
8d96f9cae4
2 changed files with 4 additions and 3 deletions
|
@ -28,7 +28,8 @@ var cacheclear = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
var cleanup = function () {
|
var cleanup = function () {
|
||||||
_win.loadURL('https://discordapp.com/channels/@me');
|
let dir = approot().split('app.asar')[0].replace(/\\/g,"/");
|
||||||
|
_win.loadURL(`https://${(dir.toLowerCase().indexOf("discordcanary") > -1 && "canary.") || (dir.toLowerCase().indexOf("discordptb") > -1 && "ptb.") || ""}discordapp.com/channels/@me`);
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function () {
|
var setup = function () {
|
||||||
|
|
|
@ -43,12 +43,12 @@
|
||||||
if(confirm("This is your last chance to back out. It's all over from here if you continue.","Final Chance To Leave")){
|
if(confirm("This is your last chance to back out. It's all over from here if you continue.","Final Chance To Leave")){
|
||||||
setup();
|
setup();
|
||||||
}else{
|
}else{
|
||||||
require("electron").remote.getCurrentWindow().loadURL("https://discordapp.com/channels/@me");
|
cleanup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var goback = function(){
|
var goback = function(){
|
||||||
require("electron").remote.getCurrentWindow().loadURL("https://discordapp.com/channels/@me");
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(typeof(_cynergy_ver) !== "undefined"){
|
if(typeof(_cynergy_ver) !== "undefined"){
|
||||||
|
|
Loading…
Reference in a new issue