diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt
index e66f11d93b082123894dd2f57cfa95577c81f037..f8bdc1f30fc315d62d2c0b522bc5a6a66d7dd03e 100644
--- a/devNotes/twine JS.txt	
+++ b/devNotes/twine JS.txt	
@@ -11600,26 +11600,21 @@ window.HSM = function() {
 /*:: colorModeJS [script]*/
 
 window.setColors = function(colorMap){
+    let props = ["color","backgroundColor","backgroundImage"];
     let styleSheetArray = Array.from(document.styleSheets);
     styleSheetArray.forEach( styleSheet => {
         let cssRules = Array.from(styleSheet.cssRules);
         cssRules.forEach( cssRule => {
             if ( cssRule.type === 1 ){
-                let color = cssRule.style.color;
-                let bgcolor = cssRule.style.backgroundColor;
-                if (
-                    color != "" &&
-                    color != "inherit" ){
-                    cssRule.style.color = colorMap[color] || color;
-                    console.log('color: ',color);
-                }
-                if (
-                    bgcolor != "" &&
-                    bgcolor != "inherit" &&
-                    bgcolor != "transparent" ){
-                    cssRule.style.backgroundColor = colorMap[bgcolor] || bgcolor;
-                    console.log('color: ',color);
-                }
+                props.forEach( propName => {
+                    let currentValue = cssRule.style[propName];
+                    if (
+                        currentValue != "" &&
+                        currentValue != "inherit" &&
+                        currentValue != "transparent"){
+                        cssRule.style[propName] = colorMap[currentValue] || currentValue;
+                    }
+                })
             }
         });
     });