GlobalBadges: Update Restrictions
This commit is contained in:
parent
8cfe2ab7f6
commit
9aef6ff04f
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ export const settings = definePluginSettings({
|
|||
default: "https://badges.equicord.org/",
|
||||
restartNeeded: false,
|
||||
onChange: (e => {
|
||||
if (!e || !e.startsWith("https://")) return settings.store.apiUrl = "https://badges.equicord.org/";
|
||||
if (!e || !e.startsWith("https://") || !e.startsWith("localhost") || !e.startsWith("127.0.0.1")) return settings.store.apiUrl = "https://badges.equicord.org/";
|
||||
return e;
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue