Skip to content

Commit 1c960f2

Browse files
authored
Give the user an option to not automatically introduce style files (#101)
1 parent 36b8616 commit 1c960f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layout/src/wwwroot/AntDesign.ProLayout.lib.module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function loadScriptAndStyle() {
1919
const antblazorCss = '_content/AntDesign/css/ant-design-blazor.css';
2020
const prolayoutCss = '_content/AntDesign.ProLayout/css/ant-design-pro-layout-blazor.css';
2121

22-
if (!document.querySelector(`[href="${prolayoutCss}"]`)){
22+
if (!document.querySelector(`[href="${prolayoutCss}"]`) && !document.querySelector('[no-prolayout-css]')){
2323
var customStyle = document.createElement('link');
2424
customStyle.setAttribute('href', `${prolayoutCss}`);
2525
customStyle.setAttribute('rel', 'stylesheet');
@@ -33,4 +33,4 @@ function loadScriptAndStyle() {
3333
document.head.appendChild(customStyle);
3434
}
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)