Skip to content

Commit

Permalink
🎨 format
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed May 25, 2024
1 parent 578d5ae commit 8752464
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"author": "ras0q",
"authorUrl": "https://github.com/ras0q",
"isDesktopOnly": false
}
}
4 changes: 2 additions & 2 deletions scripts/esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from "node:path";
import process from "node:process";
import { fileURLToPath } from "node:url";
import builtins from "builtin-modules";
import esbuild from "esbuild";
import path from "node:path";
import { fileURLToPath } from "node:url";

const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export default class MyPlugin extends Plugin {
.at(0)?.view;
if (!localGraphView) return;

const fileView = this.app.workspace.getLeavesOfType("markdown")
const fileView = this.app.workspace.getLeavesOfType("markdown");
if (!fileView || fileView.length === 0) {
// FIXME: don't detach other localgraph views
localGraphView.leaf.detach()
localGraphView.leaf.detach();
return;
}

Expand Down

0 comments on commit 8752464

Please sign in to comment.