Skip to content

Commit

Permalink
Improving comment wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald authored and jgraham committed Aug 2, 2017
1 parent 15ffa87 commit a045a7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
const fullScope = new URL(opts.scope, window.location).href;
scriptUrl = new URL(scriptUrl, location).href;

// Assuming that if this isn't supported, the header isn't
// Assume that if the link element doesn't support serviceworker, the header doesn't either.
if (link.relList.supports('serviceworker') == false) throw Error("link rel=serviceworker not supported");

let linkHeader = `<${scriptUrl}>; rel=serviceworker; scope="${fullScope}"`;
Expand Down

0 comments on commit a045a7a

Please sign in to comment.