cheeaun / hackerweb

A simply readable Hacker News web app
http://hackerwebapp.com/
1.23k stars 133 forks source link

service-worker.js should ignore requests where URL has chrome-extension scheme: #70

Open Leftium opened 2 years ago

Leftium commented 2 years ago

I think service-worker.js should ignore requests where the URL has chrome-extension scheme. Otherwise this error might happen:

service-worker.js:19 Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Request scheme 'chrome-extension' is unsupported

To reproduce, you may need to install this Chrome extension: https://chrome.google.com/webstore/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle?hl=en

image