File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/vuetify/src/composables Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,9 @@ function getScopedSelector (selector: string, scope?: string) {
302
302
return selector === ':root' ? scopeSelector : `${ scopeSelector } ${ selector } `
303
303
}
304
304
305
- function upsertStyles ( styleEl : HTMLStyleElement | null , styles : string ) {
305
+ function upsertStyles ( id : string , cspNonce : string | undefined , styles : string ) {
306
+ const styleEl = getOrCreateStyleElement ( id , cspNonce )
307
+
306
308
if ( ! styleEl ) return
307
309
308
310
styleEl . innerHTML = styles
@@ -431,10 +433,7 @@ export function createTheme (options?: ThemeOptions): ThemeInstance & { install:
431
433
}
432
434
433
435
function updateStyles ( ) {
434
- upsertStyles (
435
- getOrCreateStyleElement ( parsedOptions . stylesheetId , parsedOptions . cspNonce ) ,
436
- styles . value
437
- )
436
+ upsertStyles ( parsedOptions . stylesheetId , parsedOptions . cspNonce , styles . value )
438
437
}
439
438
}
440
439
}
You can’t perform that action at this time.
0 commit comments