im starting to hate electron

This commit is contained in:
Cynthia Foxwell 2017-12-09 12:33:02 -07:00
parent 2ab935f127
commit ea81d148a6
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ var cacheclear = function () {
var cleanup = function () {
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 () {