From 82dd09c6518d4a7a1c42ec61ed8c6e25c8fef0eb Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 1 Jan 2023 12:55:30 +0200 Subject: [PATCH] fix console error --- files/assets/js/settings_profile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/assets/js/settings_profile.js b/files/assets/js/settings_profile.js index 6ff3f1f9ff..27337ce48c 100644 --- a/files/assets/js/settings_profile.js +++ b/files/assets/js/settings_profile.js @@ -92,7 +92,10 @@ function updatebgselection(){ str += ``; } bgContainer.innerHTML = str; - register_new_elements(bgContainer); + + if (typeof register_new_elements === "function") { + register_new_elements(bgContainer) + } } updatebgselection();