Can't open locally with Safari Version 11.0.3 (13604.5.6) on MacOS
Opened this issue · 1 comments
When I try to open it directly in the local file-system in Safari on MacOS I just get a white screen (works fine in safari though):
Safari Version 11.0.3 (13604.5.6)
these lines are in the the error log:
[Error] Not allowed to load local resource: file://fonts.googleapis.com/css?family=Lato
[Error] SecurityError (DOM Exception 18): The operation is insecure.
get (artemis.min.js:29:366)
(anonyme Funktion) (monogatari.js:157)
first line looks related to @import url(//fonts.googleapis.com/css?family=Lato);
in main.css. Is there a missing https:
at the start?
the second one seems to be a bug in Artemis - something to do with localstorage sandboxing looks like.
Ah, I'm really sorry! Somehow I missed this issue!
The @import url(//fonts.googleapis.com/css?family=Lato);
does not have an http:
or https:
at the beginning because it will adapt to whatever protocol the page is running, it's producing an error because if you run it locally, it will use file:
as the protocol, as if requesting a local file and of course the file will not be fount. That error should not be a problem though.
It's probably not working on Safari because Safari blocks access to local storage if the page is not trusted (if it's being served locally and without a server, it probably isn't trusted) I think there is an option somewhere in Safari's settings to disable that protection but I would actually advice against that and prefer using another browser for development. Since local storage can't be used, some operations fail, causing the blank screen. I'll be sure to address that in a better way so it doesn't simply turn out unusable :)