Skip to content

Commit f7d4f7c

Browse files
committed
fix: document.write
1 parent cf0f7be commit f7d4f7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/.vitepress/plugins/mirror.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ const preHiddenLayout = () => {
237237
/\d+/.test(new URLSearchParams(location.search).get('r') || '')
238238
) {
239239
document.write(
240-
'<styl' +
241-
'e id="hidden-layout-style"> #app .Layout { visibility: hidden; } </styl' +
242-
'e>',
240+
'<styl',
241+
'e id="hidden-layout-style"> #app .Layout { visibility: hidden; } ',
242+
'</styl',
243+
'e>',
243244
);
244245
}
245246
};

0 commit comments

Comments
 (0)