@ablula/egg-yuque-viewer
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -163,5 +163,5 @@ 'use strict'; | ||
<script> | ||
function initHljsDelay(time = ${config.highlightDelay || 300}) { | ||
function initHljsDelay(time = ${config.highlightDelay || 1000}) { | ||
setTimeout(() => { | ||
document.querySelectorAll('pre.ne-codeblock').forEach((el) => { | ||
document.querySelectorAll('pre.ne-codeblock, pre code').forEach((el) => { | ||
hljs.highlightElement(el); | ||
@@ -174,2 +174,5 @@ }); | ||
}); | ||
document.addEventListener('load', (event) => { | ||
initHljsDelay(); | ||
}); | ||
let previousUrl = ""; | ||
@@ -176,0 +179,0 @@ const observer = new MutationObserver(() => { |
{ | ||
"name": "@ablula/egg-yuque-viewer", | ||
"author": "mark.ck", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "egg plugin for yuque viewer", | ||
@@ -6,0 +6,0 @@ "eggPlugin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25476
675