Node.js based forum software built for the modern web
Fix rebuild ACP alert not working sometimes (#6403)
Peter Jaszkowiak968d5e441f8a
diff --git a/public/src/admin/modules/instance.js b/public/src/admin/modules/instance.jsindex 574b87d0a4..bdb2aad21b 100644--- a/public/src/admin/modules/instance.js+++ b/public/src/admin/modules/instance.js@@ -1,7 +1,11 @@'use strict';--define('admin/modules/instance', function () {+define('admin/modules/instance', [+ // need to preload the compiled alert template+ // otherwise it can be unloaded when rebuild & restart is run+ // the client can't fetch the template file, resulting in an error+ config.relative_path + '/assets/templates/alert.js',+], function () {var instance = {};instance.rebuildAndRestart = function (callback) {