mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
aux window - require window context in more places
This commit is contained in:
committed by
Benjamin Pasero
parent
646666645b
commit
bed2384bfe
@@ -830,7 +830,7 @@ export function isGlobalStylesheet(node: Node): boolean {
|
||||
return globalStylesheets.has(node as HTMLStyleElement);
|
||||
}
|
||||
|
||||
export function cloneGlobalStylesheets(targetWindow: Window & typeof globalThis): IDisposable {
|
||||
export function cloneGlobalStylesheets(targetWindow: Window): IDisposable {
|
||||
const disposables = new DisposableStore();
|
||||
|
||||
for (const [globalStylesheet] of globalStylesheets) {
|
||||
@@ -840,7 +840,7 @@ export function cloneGlobalStylesheets(targetWindow: Window & typeof globalThis)
|
||||
return disposables;
|
||||
}
|
||||
|
||||
function cloneGlobalStyleSheet(globalStylesheet: HTMLStyleElement, targetWindow: Window & typeof globalThis): IDisposable {
|
||||
function cloneGlobalStyleSheet(globalStylesheet: HTMLStyleElement, targetWindow: Window): IDisposable {
|
||||
const clone = globalStylesheet.cloneNode(true) as HTMLStyleElement;
|
||||
targetWindow.document.head.appendChild(clone);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user