Skip to content

Commit

Permalink
fix pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
h.u.g.u.rp committed Jul 16, 2023
1 parent f7b637b commit 14e1d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const _respondWithApiRoot = (request) => {
};

const _handleMessage = ({ data }) => {
const { symbols, userSymbols, location } = JSON.parse(data);
const { symbols, userSymbols, pathname } = JSON.parse(data);
/* assign the data on the worker self global object;
so we can re-use these values in the suggestions */
self.symbols = symbols;
Expand Down

0 comments on commit 14e1d98

Please sign in to comment.