remove javascript error log trying to load hljs from non config pages
This commit is contained in:
parent
f7897763e3
commit
f99fdac4b0
@ -50,9 +50,15 @@
|
|||||||
{
|
{
|
||||||
<!-- I don't want to include the entire highlight js into the bundle for this 1 page -->
|
<!-- I don't want to include the entire highlight js into the bundle for this 1 page -->
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
|
||||||
|
<script>
|
||||||
|
if (hljs !== undefined) {
|
||||||
|
hljs.highlightAll();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<environment include="Development">
|
<environment include="Development">
|
||||||
<script type="text/javascript" src="~/js/configuration.js"></script>
|
<script type="text/javascript" src="~/js/configuration.js"></script>
|
||||||
</environment>
|
</environment>
|
||||||
}
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
@ -74,7 +74,6 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
hljs.highlightAll();
|
|
||||||
$('.edit-file' ).on('keydown .editable', function(e){
|
$('.edit-file' ).on('keydown .editable', function(e){
|
||||||
if(e.keyCode === 9) {
|
if(e.keyCode === 9) {
|
||||||
document.execCommand ( 'styleWithCSS', true, null )
|
document.execCommand ( 'styleWithCSS', true, null )
|
||||||
|
Loading…
Reference in New Issue
Block a user