mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Use the new Url().asset() helper for loading snowboard extras styling
This commit is contained in:
parent
4566d8a15c
commit
725306c7ef
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -31,7 +31,7 @@ export default class StylesheetLoader extends Singleton {
|
||||
if (!stylesLoaded) {
|
||||
const stylesheet = document.createElement('link');
|
||||
stylesheet.setAttribute('rel', 'stylesheet');
|
||||
stylesheet.setAttribute('href', this.snowboard.url().to('/modules/system/assets/css/snowboard.extras.css'));
|
||||
stylesheet.setAttribute('href', this.snowboard.url().asset('/modules/system/assets/css/snowboard.extras.css'));
|
||||
document.head.appendChild(stylesheet);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user