From 4fafa40982fbd3b06b66c7ba56b46ae214763252 Mon Sep 17 00:00:00 2001 From: WFH Brian Date: Fri, 29 Dec 2023 15:44:56 -0500 Subject: [PATCH] up --- src/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/index.js b/src/index.js index 59b68701..b3bbbc13 100644 --- a/src/index.js +++ b/src/index.js @@ -223,11 +223,8 @@ class SmartConnectionsPlugin extends Obsidian.Plugin { }); if(v2.status !== 200) return console.error("Error downloading version 2", v2); console.log(v2); - await this.app.vault.adapter.remove(".obsidian/plugins/smart-connections/main.js"); // remove current await this.app.vault.adapter.write(".obsidian/plugins/smart-connections/main.js", v2.json.main); // add new - await this.app.vault.adapter.remove(".obsidian/plugins/smart-connections/manifest.json"); // remove current await this.app.vault.adapter.write(".obsidian/plugins/smart-connections/manifest.json", v2.json.manifest); // add new - await this.app.vault.adapter.remove(".obsidian/plugins/smart-connections/styles.css"); // remove current await this.app.vault.adapter.write(".obsidian/plugins/smart-connections/styles.css", v2.json.styles); // add new window.restart_plugin = async (id) => { console.log("restarting plugin", id);