[MM-39139] Workaround for transparency issue for BrowserViews on Electron v14.1.0+ (#1792)
This commit is contained in:
@@ -35,6 +35,11 @@ export class ModalView<T, T2> {
|
|||||||
contextIsolation: process.env.NODE_ENV !== 'test',
|
contextIsolation: process.env.NODE_ENV !== 'test',
|
||||||
preload,
|
preload,
|
||||||
nodeIntegration: process.env.NODE_ENV === 'test',
|
nodeIntegration: process.env.NODE_ENV === 'test',
|
||||||
|
|
||||||
|
// Workaround for this issue: https://github.com/electron/electron/issues/30993
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
|
transparent: true,
|
||||||
}});
|
}});
|
||||||
this.onReject = onReject;
|
this.onReject = onReject;
|
||||||
this.onResolve = onResolve;
|
this.onResolve = onResolve;
|
||||||
|
@@ -49,6 +49,11 @@ export default class TeamDropdownView {
|
|||||||
contextIsolation: process.env.NODE_ENV !== 'test',
|
contextIsolation: process.env.NODE_ENV !== 'test',
|
||||||
preload,
|
preload,
|
||||||
nodeIntegration: process.env.NODE_ENV === 'test',
|
nodeIntegration: process.env.NODE_ENV === 'test',
|
||||||
|
|
||||||
|
// Workaround for this issue: https://github.com/electron/electron/issues/30993
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
|
transparent: true,
|
||||||
}});
|
}});
|
||||||
|
|
||||||
this.view.webContents.loadURL(getLocalURLString('dropdown.html'));
|
this.view.webContents.loadURL(getLocalURLString('dropdown.html'));
|
||||||
|
@@ -295,6 +295,11 @@ export class ViewManager {
|
|||||||
nativeWindowOpen: true,
|
nativeWindowOpen: true,
|
||||||
contextIsolation: process.env.NODE_ENV !== 'test',
|
contextIsolation: process.env.NODE_ENV !== 'test',
|
||||||
nodeIntegration: process.env.NODE_ENV === 'test',
|
nodeIntegration: process.env.NODE_ENV === 'test',
|
||||||
|
|
||||||
|
// Workaround for this issue: https://github.com/electron/electron/issues/30993
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
|
transparent: true,
|
||||||
}});
|
}});
|
||||||
const query = new Map([['url', urlString]]);
|
const query = new Map([['url', urlString]]);
|
||||||
const localURL = getLocalURLString('urlView.html', query);
|
const localURL = getLocalURLString('urlView.html', query);
|
||||||
|
Reference in New Issue
Block a user