fix(youtube-music): fix #3296, and macOS traffic lights

This commit is contained in:
JellyBrick
2025-05-11 01:56:01 +09:00
parent 41ce2320fa
commit 97a277a192
3 changed files with 17 additions and 4 deletions

View File

@ -32,6 +32,18 @@ let firstDataLoaded = false;
registerWindowDefaultTrustedTypePolicy();
{
let osType = 'Unknown';
if (window.electronIs.osx()) {
osType = 'Macintosh';
} else if (window.electronIs.windows()) {
osType = 'Windows';
} else if (window.electronIs.linux()) {
osType = 'Linux';
}
document.documentElement.setAttribute('data-os', osType);
}
async function listenForApiLoad() {
if (!isApiLoaded) {
api = document.querySelector('#movie_player');