mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Improved compatibility
This commit is contained in:
@ -4,6 +4,8 @@ import { render } from 'solid-js/web';
|
||||
import { TitleBar } from './renderer/TitleBar';
|
||||
import { defaultInAppMenuConfig, type InAppMenuConfig } from './constants';
|
||||
|
||||
import { APPLICATION_NAME } from '@/i18n';
|
||||
|
||||
import type { RendererContext } from '@/types/contexts';
|
||||
|
||||
const scrollStyle = `
|
||||
@ -25,7 +27,7 @@ export const onRendererLoad = async ({
|
||||
}: RendererContext<InAppMenuConfig>) => {
|
||||
setConfig(await getConfig());
|
||||
|
||||
document.title = 'Pear Desktop';
|
||||
document.title = APPLICATION_NAME;
|
||||
const stylesheet = new CSSStyleSheet();
|
||||
stylesheet.replaceSync(scrollStyle);
|
||||
document.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];
|
||||
|
||||
Reference in New Issue
Block a user