diff --git a/js/main.js b/js/main.js index 2e71438e..7ec6ce79 100644 --- a/js/main.js +++ b/js/main.js @@ -104,6 +104,7 @@ var mainCore; var settings = { "Startup Error Modal": { "id": "bda-gs-9", "info": "Show a modal with plugin/theme errors on startup.", "implemented": true, "hidden": false, "cat": "core"}, + "Show Plugin Toasts": { "id": "bda-gs-10", "info": "Shows a small notification for starting and stopping plugins.", "implemented": true, "hidden": false, "cat": "core"}, "Save logs locally": { "id": "bda-gs-0", "info": "Saves chat logs locally", "implemented": false, "hidden": false, "cat": "core"}, "Public Servers": { "id": "bda-gs-1", "info": "Display public servers button", "implemented": false, "hidden": false, "cat": "core"}, "Minimal Mode": { "id": "bda-gs-2", "info": "Hide elements and reduce the size of elements.", "implemented": true, "hidden": false, "cat": "core"}, @@ -148,6 +149,7 @@ var defaultCookie = { "bda-gs-7": false, "bda-gs-8": false, "bda-gs-9": true, + "bda-gs-10": true, "bda-es-0": true, "bda-es-1": true, "bda-es-2": true, @@ -428,6 +430,8 @@ Core.prototype.alert = function(title, content) { }; Core.prototype.showStartupErrors = function() { + if (!bdpluginErrors || !bdthemeErrors) return; + if (!bdpluginErrors.length && !bdthemeErrors.length) return; let modal = $(`