style(js): fix code style in JS

This commit is contained in:
Cotes Chung
2022-10-21 23:54:16 +08:00
parent 3c44a1ff71
commit b6a1a4172e
9 changed files with 9 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ $(function() {
const hash = decodeURI(this.hash);
let toFootnoteRef = RegExp(/^#fnref:/).test(hash);
let toFootnote = toFootnoteRef ? false : RegExp(/^#fn:/).test(hash);
let selector = hash.includes(":") ? hash.replace(/\:/g, "\\:") : hash;
let selector = hash.includes(":") ? hash.replace(/:/g, "\\:") : hash;
let $target = $(selector);
let isMobileViews = $topbarTitle.is(":visible");