Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open locally with Safari Version 11.0.3 (13604.5.6) on MacOS #1

Open
increpare opened this issue Feb 25, 2018 · 1 comment
Open

Comments

@increpare
Copy link

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.

@Hyuchia
Copy link
Member

Hyuchia commented Jul 25, 2018

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants