This commit is contained in:
Miodec 2022-08-02 21:02:44 +02:00
parent 26b72d6b6c
commit a5979abe7a

View file

@ -1632,7 +1632,7 @@ export function setCustomBackground(value: string, nosave?: boolean): boolean {
(/(https|http):\/\/(www\.|).+\..+\/.+(\.png|\.gif|\.jpeg|\.jpg)/gi.test(
value
) &&
!/[<> "]/.test(value)||
!/[<> "]/.test(value)) ||
value == ""
) {
config.customBackground = value;