diff --git a/templates/partials/widgets/bg-photo-toggle.html b/templates/partials/widgets/bg-photo-toggle.html index 8a44e69..decf546 100644 --- a/templates/partials/widgets/bg-photo-toggle.html +++ b/templates/partials/widgets/bg-photo-toggle.html @@ -9,6 +9,7 @@ document.body.style.setProperty('--bg-photo-url', 'url("' + url + '")'); document.body.classList.add('bg-photo'); + {{if not .IsProduction}} window.toggleBgPhoto = function() { var isOn = document.body.classList.contains('bg-photo'); if (isOn) { @@ -22,10 +23,12 @@ if (icon) icon.setAttribute('icon', isOn ? 'mdi:image-outline' : 'mdi:image'); } }; + {{end}} })(); - +{{if not .IsProduction}} +