Remove pre-script
section
This commit is contained in:
parent
43afaa3e8d
commit
b0097eacbd
@ -91,8 +91,6 @@
|
||||
|
||||
</div><!-- ./wrapper -->
|
||||
|
||||
@yield('pre-script')
|
||||
|
||||
<!-- App Scripts -->
|
||||
@include('common.dependencies.script', ['module' => 'user'])
|
||||
|
||||
|
@ -17,15 +17,12 @@
|
||||
<section class="content"></section><!-- /.content -->
|
||||
</div><!-- /.content-wrapper -->
|
||||
|
||||
@endsection
|
||||
|
||||
@section('pre-script')
|
||||
<script>
|
||||
Object.defineProperty(window, '__bs_data__', {
|
||||
value: Object.freeze({
|
||||
admin: !!{{ $user->isAdmin() }}
|
||||
}),
|
||||
writable: false
|
||||
})
|
||||
Object.defineProperty(window, '__bs_data__', {
|
||||
value: Object.freeze({
|
||||
admin: !!{{ $user->isAdmin() }}
|
||||
}),
|
||||
writable: false
|
||||
})
|
||||
</script>
|
||||
@endsection
|
||||
|
Loading…
Reference in New Issue
Block a user