diff --git a/js/main.js b/js/main.js
index bc7fcd0..c96b97a 100644
--- a/js/main.js
+++ b/js/main.js
@@ -2,7 +2,7 @@
* Version: 1.53
* Author: Jiiks | http://jiiks.net
* Date: 27/08/2015 - 16:36
- * Last Update: 02/04/2016
+ * Last Update: 01/05/2016
* https://github.com/Jiiks/BetterDiscordApp
*/
var settingsPanel, emoteModule, utils, quickEmoteMenu, opublicServers, voiceMode, pluginModule, themeModule, customCssEditor;
@@ -143,8 +143,10 @@ function Core() {}
Core.prototype.init = function () {
var self = this;
- if (version < supportedVersion) {
- this.alert("Not Supported", "BetterDiscord v" + version + "(your version)" + " is not supported by the latest js(" + jsVersion + ").
Please download the latest version from BetterDiscord.net");
+ var lVersion = (typeof(version) === "undefined") ? bdVersion : version;
+
+ if (lVersion < supportedVersion) {
+ this.alert("Not Supported", "BetterDiscord v" + lVersion + "(your version)" + " is not supported by the latest js(" + jsVersion + ").
Please download the latest version from BetterDiscord.net");
return;
}
@@ -379,18 +381,31 @@ Core.prototype.constructChangelog = function () {
};
Core.prototype.alert = function (title, text) {
- $("body").append('' +
- '