Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Dec 27, 2023
1 parent dcbfed8 commit 59d66fd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function useHTMLClass( className, isDarkMode ) {
const mainImage = new Image();
mainImage.src = aiBg;
mainImage.onload = () => {
if(
document.querySelector('.nfd-onboarding-skeleton--sitegen')
){
if (
document.querySelector( '.nfd-onboarding-skeleton--sitegen' )
) {
document.querySelector(
'.nfd-onboarding-skeleton--sitegen'
).style.background = isDarkMode ? `url('${ aiBg }')` : lightBg;
Expand Down

0 comments on commit 59d66fd

Please sign in to comment.