Skip to content

Commit

Permalink
Give the user an option to not automatically introduce style files (#101
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wangj90 committed Jul 6, 2024
1 parent 36b8616 commit 1c960f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layout/src/wwwroot/AntDesign.ProLayout.lib.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function loadScriptAndStyle() {
const antblazorCss = '_content/AntDesign/css/ant-design-blazor.css';
const prolayoutCss = '_content/AntDesign.ProLayout/css/ant-design-pro-layout-blazor.css';

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

0 comments on commit 1c960f2

Please sign in to comment.