1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 07:24:27 +02:00

Further refinements to admin extensions page

This commit is contained in:
Toby Zerner
2015-10-13 12:27:10 +10:30
parent 4c2ff6e82d
commit 6f7cce5adf
3 changed files with 74 additions and 107 deletions

View File

@@ -54,4 +54,12 @@ export default function boot(app) {
}).start();
app.booted = true;
// If an extension has just been enabled, then we will run its settings
// callback.
const enabled = localStorage.getItem('enabledExtension');
if (enabled && app.extensionSettings[enabled]) {
app.extensionSettings[enabled]();
localStorage.removeItem('enabledExtension');
}
}