mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
chore: update to electron 13 (#124666)
* chore: bump electron@13.0.1 * chore: update cache for native modules * chore: bump electron@13.1.2 * chore: bump electron@13.1.4 * chore: fix user data dir length for validateIPCHandleLength check * chore: always disable uploadToServer on OSS * chore: use process.contextIsolated property * chore: bump electron@13.1.6 * fix: getUserDataPath helper
This commit is contained in:
@@ -124,7 +124,7 @@ export class CodeApplication extends Disposable {
|
||||
// !!! DO NOT CHANGE without consulting the documentation !!!
|
||||
//
|
||||
|
||||
const isUrlFromWebview = (requestingUrl: string) => requestingUrl.startsWith(`${Schemas.vscodeWebview}://`);
|
||||
const isUrlFromWebview = (requestingUrl: string | undefined) => requestingUrl?.startsWith(`${Schemas.vscodeWebview}://`);
|
||||
|
||||
session.defaultSession.setPermissionRequestHandler((_webContents, permission /* 'media' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen' | 'openExternal' */, callback, details) => {
|
||||
if (isUrlFromWebview(details.requestingUrl)) {
|
||||
|
||||
Reference in New Issue
Block a user