]> BookStack Code Mirror - bookstack/blobdiff - resources/views/common/custom-head.blade.php
Split out codemirror JS to its own module
[bookstack] / resources / views / common / custom-head.blade.php
index 3199fc179d2f6d5b79550abf65384ef47ad897eb..7f2e93cdc993e4713d07cd17791e0b4094ac2464 100644 (file)
@@ -1,5 +1,7 @@
+@inject('headContent', 'BookStack\Theming\CustomHtmlHeadContentProvider')
+
 @if(setting('app-custom-head') && \Route::currentRouteName() !== 'settings')
-<!-- Custom user content -->
-{!! \BookStack\Util\HtmlNonceApplicator::apply(setting('app-custom-head'), $cspNonce) !!}
-<!-- End custom user content -->
+<!-- Start: custom user content -->
+{!! $headContent->forWeb() !!}
+<!-- End: custom user content -->
 @endif
\ No newline at end of file