Skip to content

Commit

Permalink
deploy: 6c5c5d3
Browse files Browse the repository at this point in the history
  • Loading branch information
xirreal committed Aug 28, 2024
1 parent f0fc5dc commit 13e7c1f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions 404.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ If you wanna get even fancier, use the one click installers. (ok technically _tw

![Install button example](assets/installButton.png)

> [!IMPORTANT]
> This plugin is required for the one click installers to work.
> **IMPORTANT**: _This plugin is required for the one click installers to work._
Manual installation URL: `https://shelter.xirreal.dev/installButton/`

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ If you wanna get even fancier, use the one click installers. (ok technically _tw

![Install button example](assets/installButton.png)

> [!IMPORTANT]
> This plugin is required for the one click installers to work.
> **IMPORTANT**: _This plugin is required for the one click installers to work._
Manual installation URL: `https://shelter.xirreal.dev/installButton/`

Expand Down
1 change: 1 addition & 0 deletions installButton/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@
async function handleInstall(_, url) {
if (window.InstallButtonEnabled === false)
return;
DiscordNative.window.focus();
url = url.substring(1);
url = url.endsWith("/") ? url : url + "/";
if (!trustedUrls.find((trustedUrl) => url.startsWith(trustedUrl))) {
Expand Down
2 changes: 1 addition & 1 deletion installButton/plugin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Install Button","description":"Quickly and easily install shelter plugins with a button.","author":"xirreal","hash":"95e28d288c0ec641e4d89c031631b244"}
{"name":"Install Button","description":"Quickly and easily install shelter plugins with a button.","author":"xirreal","hash":"1733cc5ed8021ba398cc6bd15acf4eb0"}

0 comments on commit 13e7c1f

Please sign in to comment.