fix(route): 罗磊的独立博客 (#16078)
This commit is contained in:
parent
cf0d3467e6
commit
151dc2d337
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue