mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Rework extension bootstrapping
System JS modules don't execute when they're registered, so we need to import them explicitly. While we're at it, we may as well make the locale bootstrapper a module too.
This commit is contained in:
@@ -35,7 +35,11 @@
|
||||
document: {!! json_encode($document) !!},
|
||||
session: {!! json_encode($session) !!}
|
||||
};
|
||||
initLocale(app);
|
||||
|
||||
@foreach ($bootstrappers as $bootstrapper)
|
||||
System.import('{{ $bootstrapper }}');
|
||||
@endforeach
|
||||
|
||||
app.boot();
|
||||
} catch (e) {
|
||||
document.write('<div class="container">Something went wrong.</div>');
|
||||
|
Reference in New Issue
Block a user