mirror of
https://github.com/flarum/framework.git
synced 2025-02-28 16:17:40 +08:00
using blade @json directive to parse raw json into frontend`
This commit is contained in:
parent
5a99f13f3f
commit
1cc6deabec
@ -49,7 +49,7 @@
|
|||||||
if (module.default) module.default(app);
|
if (module.default) module.default(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
app.boot({!! json_encode($payload) !!});
|
app.boot(@json($payload));
|
||||||
@if (! $debug)
|
@if (! $debug)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.location += (window.location.search ? '&' : '?') + 'nojs=1';
|
window.location += (window.location.search ? '&' : '?') + 'nojs=1';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user