Skip to content

Commit

Permalink
Fixed the fons example code to use the correct request object
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeenan committed Mar 6, 2019
1 parent 76c6446 commit a58d9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fast-google-fonts/fast-google-fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ addEventListener("fetch", event => {
event.passThroughOnException();
if (event.request.method === 'GET') {
const url = new URL(event.request.url);
const accept = originalRequest.headers.get('Accept');
const accept = event.request.headers.get('Accept');
if (url.pathname.startsWith('/fonts.gstatic.com/')) {
// Pass the font requests through to the origin font server
// (through the underlying request cache).
Expand Down

0 comments on commit a58d9f1

Please sign in to comment.