Skip to content

Instantly share code, notes, and snippets.

@n1k0
Created January 18, 2016 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n1k0/6f925c655798b9a1abeb to your computer and use it in GitHub Desktop.
Save n1k0/6f925c655798b9a1abeb to your computer and use it in GitHub Desktop.
Firefox service worker bug with ZERO WIDTH JOINER char (0x200D)
<!DOCTYPE html>
<html><meta charset="utf-8"></head>
<body>
<script>
window.navigator.serviceWorker.register("worker.js", {scope: "/"})
.then(reg => console.log("registered", reg))
.catch(err => console.error("service worker error", err))
</script>
</body>
</html>
// a contains a ZERO WIDTH JOINER (0x200D)
var a = "‍";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment