mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 02:09:52 +01:00
Fix rebuild ACP alert not working sometimes (#6403)
This commit is contained in:
committed by
Julian Lam
parent
a00f1f9a81
commit
968d5e441f
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user