fix(route): 罗磊的独立博客 (#16078)

This commit is contained in:
Ethan Shen
2024-07-04 00:30:42 +08:00
committed by GitHub
parent cf0d3467e6
commit 151dc2d337
+1 -1
View File
@@ -39,7 +39,7 @@ export const handler = async (ctx) => {
const language = $('html').prop('lang');
const themeEl = $('link[rel="modulepreload"]')
.toArray()
.findLast((l) => /theme\.\w+\.js$/.test($(l).prop('href')));
.findLast((l) => /theme\..*\.js$/.test($(l).prop('href')));
const themeUrl = themeEl ? new URL($(themeEl).prop('href'), rootUrl).href : undefined;
const { data: themeResponse } = await got(themeUrl);