File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
typescript-packages/loader/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,14 @@ export async function appendAccentColor() {
21
21
addStyleSheetFromText ( document , `:root {\n${ entries } \n}` , 'SystemAccentColorInject' ) ;
22
22
}
23
23
24
+ export async function appendQuickCss ( ) {
25
+ const quickCss : string = JSON . parse ( await Millennium . callServerMethod ( 'core' , 'Core_LoadQuickCss' ) ) ;
26
+ addStyleSheetFromText ( document , quickCss , 'MillenniumQuickCss' ) ;
27
+ }
28
+
24
29
export async function addPluginDOMBreadCrumbs ( enabledPlugins : string [ ] = [ ] ) {
25
30
document . documentElement . setAttribute ( 'data-millennium-plugin' , enabledPlugins . join ( ' ' ) ) ;
31
+ document . documentElement . classList . add ( 'MillenniumWindow_SteamBrowser' ) ;
26
32
}
27
33
28
34
function formatCssVarKey ( key : string ) {
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ class Bootstrap {
89
89
90
90
const browserUtils = await import ( './browser-init' ) ;
91
91
await browserUtils . appendAccentColor ( ) ;
92
+ await browserUtils . appendQuickCss ( ) ;
93
+
92
94
await browserUtils . addPluginDOMBreadCrumbs ( enabledPlugins ) ;
93
95
break ;
94
96
}
You can’t perform that action at this time.
0 commit comments