From 967850d6a9d60f3d57dc2ab44540921e74c41d96 Mon Sep 17 00:00:00 2001 From: Astra Date: Sun, 22 Apr 2018 01:00:38 -0400 Subject: [PATCH] ugly fix for #1 --- monitor.htm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/monitor.htm b/monitor.htm index 0e12cd1..e51c91e 100644 --- a/monitor.htm +++ b/monitor.htm @@ -42,7 +42,13 @@ }); function load() { - win.loadURL('https://canary.discordapp.com/channels/@me'); + win.loadURL('https://' + ( + navigator.userAgent.indexOf('Discord PTB') > -1 ? + 'ptb.' : + navigator.userAgent.indexOf('Discord Canary') > -1 ? + 'canary.' : + '' + ) + 'discordapp.com/channels/@me'); } // get the data path