feat: enable context-isolation (#1361)

This commit is contained in:
JellyBrick
2023-11-06 17:21:29 +09:00
committed by GitHub
parent 6e52178074
commit 6366dc026e
35 changed files with 655 additions and 474 deletions

8
src/reset.d.ts vendored
View File

@ -1,4 +1,9 @@
import '@total-typescript/ts-reset';
import { ipcRenderer as electronIpcRenderer } from 'electron';
import is from 'electron-is';
import config from './config';
import { YoutubePlayer } from './types/youtube-player';
declare global {
@ -13,6 +18,9 @@ declare global {
}
interface Window {
ipcRenderer: typeof electronIpcRenderer;
mainConfig: typeof config;
electronIs: typeof is;
/**
* YouTube Music internal variable (Last interaction time)
*/