Skip to content

Commit

Permalink
fix: supercharged-links-gen.css is not created when not present
Browse files Browse the repository at this point in the history
  • Loading branch information
HEmile committed Feb 5, 2022
1 parent bd7fefb commit fbe2e1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "supercharged-links-obsidian",
"name": "Supercharged Links",
"version": "0.6.2",
"version": "0.6.3",
"minAppVersion": "0.12.7",
"description": "Adds properties and menu options to internal links",
"author": "mdelobelle",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supercharged-links-obsidian",
"version": "0.6.2",
"version": "0.6.3",
"description": "Adds properties and menu options to internal links",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cssBuilder/cssBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export async function buildCSS(selectors: CSSLink[], plugin: SuperchargedLinks)

const vault = plugin.app.vault;
const path = ".obsidian/snippets/supercharged-links-gen.css";
if (vault.adapter.exists(path)) {
if (await vault.adapter.exists(path)) {
await vault.adapter.remove(path);
}
await plugin.app.vault.create(path, instructions.join('\n'));
Expand Down

0 comments on commit fbe2e1f

Please sign in to comment.