mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
fix(youtube-music): fix #3296, and macOS traffic lights
This commit is contained in:
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user