Skip to content

Commit

Permalink
修改一个配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zzlb0224 committed Aug 7, 2024
1 parent 61a94aa commit 967f898
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/preferenceScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function bindFixedColors(doc: Document) {

let collectionKey = "";

const PrefPre = "fixed-tags-colors";
const PrefPre = "FTC";

const eFixedTagsColorsTextArea = doc.querySelector(`#zotero-prefpane-${config.addonRef}-fixed-tags-colors`) as HTMLTextAreaElement;
const eFixedTagsColor = doc.querySelector(`#zotero-prefpane-${config.addonRef}-fixed-tags-color`) as HTMLSpanElement;
Expand Down Expand Up @@ -508,9 +508,9 @@ function bindFixedColors(doc: Document) {
ftcStr = FixedTagsColorsDefault;
}
if (ftcStr) {
setPref("FTC" + collectionKey, ftcStr);
setPref(PrefPre + collectionKey, ftcStr);
} else {
clearPref("FTC" + collectionKey);
clearPref(PrefPre + collectionKey);
}
memFixedTagColors.removeCache();
memFixedColor.removeCache();
Expand Down Expand Up @@ -600,9 +600,9 @@ async function replaceTagsPreviewDiv(doc?: Document) {
preview.appendChild(rootDiv);
rootDiv.innerText = `预览批注来自:${from}。条目:${ann.parentItem?.parentItem?.getDisplayTitle()}
包含标签: [${ann
.getTags()
.map((a) => a.tag)
.join(",")}]内容:${ann.annotationType} ${ann.annotationText || ""} ${ann.annotationComment || ""}
.getTags()
.map((a) => a.tag)
.join(",")}]内容:${ann.annotationType} ${ann.annotationText || ""} ${ann.annotationComment || ""}
`;
rootDiv.style.position = "";
rootDiv.style.width = "";
Expand Down

0 comments on commit 967f898

Please sign in to comment.