Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpetro committed Dec 29, 2023
1 parent 9c0c239 commit 4fafa40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4fafa40

Please sign in to comment.