mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
Prepare for webOS & Tizen support
This commit is contained in:
@@ -140,3 +140,16 @@ body::-webkit-scrollbar {
|
||||
const $style = CE('style', {}, css);
|
||||
document.documentElement.appendChild($style);
|
||||
}
|
||||
|
||||
|
||||
export function preloadFonts() {
|
||||
const $link = CE<HTMLLinkElement>('link', {
|
||||
rel: 'preload',
|
||||
href: 'https://redphx.github.io/better-xcloud/fonts/promptfont.otf',
|
||||
as: 'font',
|
||||
type: 'font/otf',
|
||||
crossorigin: '',
|
||||
});
|
||||
|
||||
document.querySelector('head')?.appendChild($link);
|
||||
}
|
||||
|
Reference in New Issue
Block a user