Skip to content

Commit

Permalink
0.12 Beta release - slightly smarter handling of new repository paths
Browse files Browse the repository at this point in the history
  • Loading branch information
TfTHacker committed Oct 4, 2021
1 parent 11ae31c commit 41edb66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"id": "obsidian42-brat",
"name": "Obsidian42 - BRAT",
"version": "0.11",
"version": "0.12",
"minAppVersion": "0.9.12",
"description": "Easiy install a beta version of a plugin for testing.",
"description": "Easi.y install a beta version of a plugin for testing.",
"author": "TfTHacker",
"authorUrl": "https://github.com/TfTHacker/obsidian42-brat",
"isDesktopOnly": false
Expand Down
5 changes: 3 additions & 2 deletions src/AddNewPluginModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ export default class AddNewPluginModal extends Modal {

async submitForm(): Promise<void> {
if (this.address === "") return;
if (await existBetaPluginInList(this.plugin, this.address)) {
const scrubbedAddress = this.address.replace("https://github.com/","");
if (await existBetaPluginInList(this.plugin, scrubbedAddress)) {
new Notice(`BRAT\nThis plugin is already in the list for beta testing`, 20000);
return;
}
const result = await this.betaPlugins.addPlugin(this.address);
const result = await this.betaPlugins.addPlugin(scrubbedAddress);
if (result) this.close();
}

Expand Down

0 comments on commit 41edb66

Please sign in to comment.