What does this mean.
billypaulhaley
23 Mar 2018, 22:26I was trying to run a quest after converting it with quest js. This is the error in html.
Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
at getCSSRule (file:///C:/Users/justi/Desktop/Awesome/game.js:1204:32)
at SetMenuBackground (file:///C:/Users/justi/Desktop/Awesome/game.js:1122:15)
at InitInterface (file:///C:/Users/justi/Desktop/Awesome/game.js:22408:1)
at worldmodelInitialise (file:///C:/Users/justi/Desktop/Awesome/game.js:1280:9)
at init (file:///C:/Users/justi/Desktop/Awesome/game.js:76:5)
at onBodyLoad (file:///C:/Users/justi/Desktop/Awesome/index.html:26:13)
at onload (file:///C:/Users/justi/Desktop/Awesome/index.html:85:64)
mrangel
23 Mar 2018, 23:55Your URL's seem to start with file://
.
For security reasons, the latest versions of Chrome (64 onwards, according to the internet) do not allow javascript full access to data from local stylesheets. This error will occur any time you try to access the .rules
or .cssRules
property of a stylesheet whose origin is the local filesystem.
I don't know QuestJS, but I suspect this would work if you put the files on a webserver instead of trying to access them locally.

K.V.
24 Mar 2018, 01:11That is correct. It loads in Firefox, but not Chrome when running the game locally.
...but, using PHP, I get this in Chrome (just as mrangel suspected):