Checking value of document.body.style.backgroundImage (with value I just set it to) doesn’t give me anything
Summary The issue arises when comparing the backgroundImage property of document.body.style directly with a string. The property returns a string with quotes around the URL, but the comparison does not account for these quotes, leading to a mismatch. Root Cause Mismatched string formatting: The backgroundImage property includes quotes around the URL, but the comparison string … Read more