UserPFP: Hide DB Change if on Standalone
This commit is contained in:
parent
b524190763
commit
d96f414d3e
1 changed files with 5 additions and 1 deletions
|
|
@ -34,8 +34,12 @@ const settings = definePluginSettings({
|
|||
description: "URL to load database from",
|
||||
type: OptionType.STRING,
|
||||
default: "https://userpfp.github.io/UserPFP/source/data.json",
|
||||
hidden: !IS_DEV,
|
||||
isValid: (value => {
|
||||
if (!value) return false;
|
||||
if (!value) {
|
||||
value = "https://userpfp.github.io/UserPFP/source/data.json";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue