chore: lint

This commit is contained in:
windingwind 2023-12-17 12:03:16 +08:00
parent 7446883595
commit d599443d77
4 changed files with 11 additions and 11 deletions

View File

@ -4,4 +4,5 @@ node_modules
package-lock.json
yarn.lock
pnpm-lock.yaml
addon/chrome/content/lib/**
# zotero-cmd.json

View File

@ -278,8 +278,8 @@
e.itemData.added
? "added-list-item"
: e.itemData.removed
? "removed-list-item"
: "",
? "removed-list-item"
: "",
);
}
},
@ -318,8 +318,8 @@
span.className = diff.added
? "added"
: diff.removed
? "removed"
: "normal";
? "removed"
: "normal";
span.innerText = diff.value;
frag.append(span);
diff.element = span;

View File

@ -1151,8 +1151,8 @@ async function processM2NRehypeImageNodes(
const srcType = (src as string).startsWith("data:")
? "b64"
: (src as string).startsWith("http")
? "url"
: "file";
? "url"
: "file";
if (srcType === "file") {
if (!PathUtils.isAbsolute(src)) {
src = jointPath(fileDir, src);

View File

@ -275,11 +275,10 @@ function setScale(scaling: number) {
}
function setTitle() {
addon.data.imageViewer.window!.document.querySelector(
"title",
)!.innerText! = `${addon.data.imageViewer.idx + 1}/${
addon.data.imageViewer.srcList.length
}:${addon.data.imageViewer.title}`;
addon.data.imageViewer.window!.document.querySelector("title")!.innerText! =
`${addon.data.imageViewer.idx + 1}/${
addon.data.imageViewer.srcList.length
}:${addon.data.imageViewer.title}`;
}
function setPin() {