There are lines with text, I want to change the color in it:
bgimg.replace("grey","white"); but in the end I get the error main.js: 8 Uncaught TypeError: Cannot read property 'replace' of undefined (...)
How can I replace the substring with another without any problems?
bgimg? What doestypeof bgimg? - Anton Shchyrovundefined. - user207618(bgimg || '').replace("grey","white");- nörbörnën