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

TypeError: Failed to Register a ServiceWorker in HTML Export #1087

Closed
jkort opened this issue Apr 13, 2021 · 1 comment
Closed

TypeError: Failed to Register a ServiceWorker in HTML Export #1087

jkort opened this issue Apr 13, 2021 · 1 comment

Comments

@jkort
Copy link

jkort commented Apr 13, 2021

Hello,

If I open a static HTML export file in Chrome, I get this error:

TypeError: Failed to register a ServiceWorker: The URL protocol of the current origin ('null') is not supported.
at Stunning program.jl.html:23

which I assume is this:
navigator.serviceWorker?.register(document.head.querySelector("link[rel='pluto-sw']").getAttribute("href"), { scope: "./" }).catch(console.warn)

Julia v1.5.2; Pluto v0.14.1
Chrome Version 89.0.4389.114 (Official Build) (64-bit)

@fonsp
Copy link
Owner

fonsp commented Apr 13, 2021

This is fine to ignore, we can't register a serviceworker on file:// URLs. Since the SW is only an optimization, it is not a problem.

@fonsp fonsp closed this as completed Apr 13, 2021
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