mirror of
https://github.com/EndPwnArchive/cynergy.git
synced 2024-08-14 22:46:57 +00:00
im starting to hate electron
This commit is contained in:
parent
2ab935f127
commit
ea81d148a6
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ var cacheclear = function () {
|
||||||
|
|
||||||
var cleanup = function () {
|
var cleanup = function () {
|
||||||
let dir = approot().split('app.asar')[0].replace(/\\/g,"/");
|
let dir = approot().split('app.asar')[0].replace(/\\/g,"/");
|
||||||
window.location.replace(`https://${(dir.toLowerCase().indexOf("discordcanary") > -1 && "canary.") || (dir.toLowerCase().indexOf("discordptb") > -1 && "ptb.") || ""}discordapp.com/channels/@me`);
|
document.head = document.createElement('head');
|
||||||
|
document.body = document.createElement('body');
|
||||||
|
require("electron").remote.getCurrentWindow().loadURL(`https://${(dir.toLowerCase().indexOf("discordcanary") > -1 && "canary.") || (dir.toLowerCase().indexOf("discordptb") > -1 && "ptb.") || ""}discordapp.com/channels/@me`);
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup = function () {
|
var setup = function () {
|
||||||
|
|
Loading…
Reference in a new issue