mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix: use window instead of (global as any)
This commit is contained in:
@ -111,8 +111,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
setupSongControls();
|
||||
|
||||
// Add action for reloading
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-explicit-any
|
||||
(global as any).reload = () => ipcRenderer.send('reload');
|
||||
window.reload = () => ipcRenderer.send('reload');
|
||||
|
||||
// Blocks the "Are You Still There?" popup by setting the last active time to Date.now every 15min
|
||||
setInterval(() => window._lact = Date.now(), 900_000);
|
||||
|
||||
Reference in New Issue
Block a user