remove javascript error log trying to load hljs from non config pages

This commit is contained in:
RaidMax 2021-11-02 18:02:04 -05:00
parent f7897763e3
commit f99fdac4b0
2 changed files with 8 additions and 3 deletions

View File

@ -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>

View File

@ -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 )