Skip to content

Commit

Permalink
eh I mean these are static assets right.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Jan 31, 2025
1 parent d301067 commit 023b988
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dev/update-font-weight-override.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ try {
const urls = sw.match(/https:\/\/assets\.tumblr\.com\/pop\/[a-z0-9-]+\.css/g);
for (const url of urls) {
console.log('downloading', url);

const [cssText] = await Promise.all([
fetch(url).then((response) => response.text()),
new Promise((resolve) => setTimeout(resolve, 500))
]);
const cssText = await fetch(url).then((response) => response.text());

const ast = cssParser.parse(cssText);
const rules = ast.stylesheet.rules
Expand Down

0 comments on commit 023b988

Please sign in to comment.