Skip to content

Commit

Permalink
fix token added to glyphs (Fonts)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps committed Aug 7, 2023
1 parent 2d5baf7 commit 5fa87e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ export function formatStyle (style, styleUrl, metadata, token) {
'styles/root.json',
style.glyphs.replace('../', '')
);
}

if (style.glyphs && token) {
// add the token to the style.glyphs property as a query param
style.glyphs += token ? '?token=' + token : '';
style.glyphs += '?token=' + token;
}

return style;
Expand Down

0 comments on commit 5fa87e2

Please sign in to comment.