mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
Allow custom variables to be set on the client app
This commit is contained in:
@@ -28,11 +28,8 @@
|
||||
<script>
|
||||
try {
|
||||
var app = System.get('flarum/app').default;
|
||||
app.preload = {
|
||||
data: {!! json_encode($data) !!},
|
||||
document: {!! json_encode($document) !!},
|
||||
session: {!! json_encode($session) !!}
|
||||
};
|
||||
|
||||
babelHelpers._extends(app, {!! json_encode($app) !!});
|
||||
|
||||
@foreach ($bootstrappers as $bootstrapper)
|
||||
System.get('{{ $bootstrapper }}');
|
||||
|
Reference in New Issue
Block a user