diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-02 22:01:34 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-02 23:49:00 +0000 |
| commit | 85dabc1eb97c4e144744f863d2e6f54555cc0db9 (patch) | |
| tree | 66291e8467ecf84fc0e22f10909c62339f0df038 /Buildscr | |
| parent | acd1f451523595ba294f29a223163ba9dbb6d981 (diff) | |
| download | puzzles-85dabc1eb97c4e144744f863d2e6f54555cc0db9.zip puzzles-85dabc1eb97c4e144744f863d2e6f54555cc0db9.tar.gz puzzles-85dabc1eb97c4e144744f863d2e6f54555cc0db9.tar.bz2 puzzles-85dabc1eb97c4e144744f863d2e6f54555cc0db9.tar.xz | |
js: Improve comment explaining same-origin policy for file:
Also a way around it, at least in Firefox.
Diffstat (limited to 'Buildscr')
| -rw-r--r-- | Buildscr | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -150,9 +150,10 @@ ifneq "$(NOJS)" yes then # # But these test pages should be good enough to just open after # running a build, to make sure the main functionality works. - # Unfortunately, due to some kind of WASM loading restriction, this - # can't be done using a file:// URL; you have to actually point an - # HTTP or HTTPS server at the build output directory. + # Unfortunately, because JavaScript can't read arbitrary local + # files, this won't usually work from a file:// URL. You have to + # either point an HTTP or HTTPS server at the build output directory + # or turn off security.fileuri.strict_origin_policy in Firefox. in puzzles do mkdir jstest in puzzles/jstest do ../html/jspage.pl --jspath=../js/ /dev/null ../html/*.html endif |