From 47bb7ad6a108b0dd19d33094bd60c8b8e1e11d58 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:37:11 +0200 Subject: [PATCH] Fix /bglock command --- public/scripts/backgrounds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/backgrounds.js b/public/scripts/backgrounds.js index 4ec8bf1f6..3deef929a 100644 --- a/public/scripts/backgrounds.js +++ b/public/scripts/backgrounds.js @@ -111,7 +111,7 @@ function onLockBackgroundClick(e) { return ''; } - const relativeBgImage = getUrlParameter(this); + const relativeBgImage = getUrlParameter(this) ?? background_settings.url; saveBackgroundMetadata(relativeBgImage); setCustomBackground();