From 529e4d2eee2e754c684e2f6dd1b29dfa0c9ee8ba Mon Sep 17 00:00:00 2001 From: Jiiks Date: Sun, 30 Aug 2015 13:36:12 +0300 Subject: [PATCH] release 0.1.3 --- lib/BetterDiscord.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/BetterDiscord.js b/lib/BetterDiscord.js index 866724ef..2d5029cc 100644 --- a/lib/BetterDiscord.js +++ b/lib/BetterDiscord.js @@ -77,12 +77,11 @@ BetterDiscord.prototype.start = function() { self.getUtils().injectJavaScript("//" + _updater.CDN + "/Jiiks/BetterDiscordApp/"+_hash+"/js/main.js", true); - self.getUtils().download("//" + _updater.CDN + "/Jiiks/BetterDiscordApp/"+_hash+"/js/emotedata_twitch.js", function(emotedata) { - self.getUtils().execJs("emotesTwitch = " + emotedata); - }); - - self.getUtils().download("//" + _updater.CDN + "/Jiiks/BetterDiscordApp/"+_hash+"/js/emotedata_ffz.js", function(emotedata) { - self.getUtils().execJs("emotesFfz = " + emotedata); + self.getUtils().download(_updater.CDN , "/Jiiks/BetterDiscordApp/"+_hash+"/emotedata_twitch.json", function(emotedata) { + self.getUtils().execJs('var emotesTwitch = JSON.parse(\''+emotedata+'\');'); + self.getUtils().download(_updater.CDN , "/Jiiks/BetterDiscordApp/"+_hash+"/emotedata_ffz.json", function(emotedata) { + self.getUtils().execJs('var emoteFfz = JSON.parse(\''+emotedata+'\');'); + }); }); //Start BDA