Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanopagliari committed Jan 23, 2022
1 parent dec8373 commit c1daa32
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ export default class MyPlugin extends Plugin {
dir: this.pathZoteroStorage + lineElements.imagePath,
base: "image.png",
});

console.log("pathImageNew before systemcheck: "+ pathImageNew)
pathImageNew = path.normalize(
path.format({
dir: normalizePath(
Expand All @@ -1086,10 +1086,10 @@ export default class MyPlugin extends Plugin {
})
);


console.log("systemcheck: " + this.zoteroBuildWindows)
if (this.zoteroBuildWindows == false){pathImageNew = "/" + pathImageNew}
console.log(pathImageOld);
console.log(pathImageNew);
console.log("pathImageNew after` systemcheck: "+ pathImageNew)

//Check if the image exists within Zotero or already within the vault
if (
Expand Down Expand Up @@ -1184,7 +1184,7 @@ export default class MyPlugin extends Plugin {
commentFormatBefore +
lineElements.commentText +
commentFormatAfter +
": " +
this.settings.commentPrependDivider +
colourTextBefore +
highlightFormatBefore +
lineElements.highlightText +
Expand Down Expand Up @@ -1495,10 +1495,7 @@ export default class MyPlugin extends Plugin {
/.+?(?=Zotero\\storage\\)Zotero\\storage\\/gm
);
if (zoteroStorageWindows.test(selectedEntry.attachments[0].path)) {
pathZoteroStorage = String(
selectedEntry.attachments[0].path.match(
zoteroStorageWindows
)
pathZoteroStorage = String(selectedEntry.attachments[0].path.match(zoteroStorageWindows)
);
zoteroBuildWindows = true;
}
Expand Down

0 comments on commit c1daa32

Please sign in to comment.