File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/vs/code/electron-browser/workbench Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 452
452
if ( Array . isArray ( configuration . cssModules ) && configuration . cssModules . length > 0 ) {
453
453
performance . mark ( 'code/willAddCssLoader' ) ;
454
454
455
- const style = document . createElement ( 'style' ) ;
456
- style . type = 'text/css' ;
457
- style . media = 'screen' ;
458
- style . id = 'vscode-css-loading' ;
459
- window . document . head . appendChild ( style ) ;
460
-
461
455
globalThis . _VSCODE_CSS_LOAD = function ( url ) {
462
- style . textContent += `@import url(${ url } );\n` ;
456
+ const link = document . createElement ( 'link' ) ;
457
+ link . setAttribute ( 'rel' , 'stylesheet' ) ;
458
+ link . setAttribute ( 'type' , 'text/css' ) ;
459
+ link . setAttribute ( 'href' , url ) ;
460
+
461
+ window . document . head . appendChild ( link ) ;
463
462
} ;
464
463
465
464
const importMap : { imports : Record < string , string > } = { imports : { } } ;
You can’t perform that action at this time.
0 commit comments