Skip to content

Commit

Permalink
1.0.9 Small fix for excludedFile console error and issue with gutter
Browse files Browse the repository at this point in the history
  • Loading branch information
TfT Hacker committed Nov 17, 2022
1 parent cdbc5cf commit dfdbf9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian42-strange-new-worlds",
"name": "Obsidian42 - Strange New Worlds",
"version": "1.0.8",
"version": "1.0.9",
"minAppVersion": "1.0.0",
"description": "Revealing networked thought and the strange new worlds created by your vault",
"author": "TfTHacker",
Expand Down
4 changes: 4 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,8 @@ body {

.snw-gutter-ref {
/* margin-right: 6px; */
}

.cm-gutters {
z-index: 0 !important;
}
2 changes: 1 addition & 1 deletion src/view-extensions/gutters-cm6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const ReferenceGutterExtension = gutter({
for (const embed of embedsFromMetaDataCache) {
if(embed.position.start.line +1 === lineNumberInFile) {
for (const ref of transformedCache.embeds) {
if(ref?.references[0].excludedFile!=true && ref?.references.length>0 && ref?.pos.start.line+1 === lineNumberInFile) {
if(ref?.references[0]?.excludedFile!=true && ref?.references.length>0 && ref?.pos.start.line+1 === lineNumberInFile) {
// @ts-ignore
let refOriginalLink = ref.references[0].reference.original;
if(refOriginalLink.substring(0,1)!="!")
Expand Down

0 comments on commit dfdbf9b

Please sign in to comment.