From 41350d4b7aafc904bc68d433d9ca391c531ad742 Mon Sep 17 00:00:00 2001
From: "Brian S. Stephan" <bss@incorporeal.org>
Date: Mon, 17 Mar 2025 00:38:37 -0500
Subject: [PATCH] remove debug stuff from the style switcher JS

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
---
 incorporealcms/templates/base.html | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/incorporealcms/templates/base.html b/incorporealcms/templates/base.html
index 7aa5e7f..f8ee7cf 100644
--- a/incorporealcms/templates/base.html
+++ b/incorporealcms/templates/base.html
@@ -27,7 +27,6 @@ function applyStyle(styleName) {
     for (i = 0, link_tag = document.getElementsByTagName("link"); i < link_tag.length; i++ ) {
         // find the stylesheets with titles, meaning they can be disabled/enabled
         if ((link_tag[i].rel.indexOf("stylesheet") != -1) && link_tag[i].title) {
-            alert(link_tag[i].title);
             link_tag[i].disabled = true;
             if (link_tag[i].title == styleName) {
                 link_tag[i].disabled = false ;
@@ -45,7 +44,6 @@ function setStyle(styleName) {
 function applyStyleFromCookie() {
     // get the user style cookie and set that specified style as the active one
     var styleName = getCookie("user-style");
-    alert(styleName);
     if (styleName) {
         applyStyle(styleName);
     }
@@ -56,7 +54,6 @@ function getCookie(cookieName) {
     let matches = document.cookie.match(new RegExp(
                 "(?:^|; )" + cookieName.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
                 ));
-    alert(matches);
     return matches ? decodeURIComponent(matches[1]) : undefined;
 }