mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
polish electron.d.ts
This commit is contained in:
@@ -126,10 +126,10 @@ export class ElectronWindow {
|
||||
});
|
||||
|
||||
// Handle window.open() calls
|
||||
window.open = function(url: string, target: string, features: string, replace: boolean) {
|
||||
(<any>window).open = function(url: string, target: string, features: string, replace: boolean) {
|
||||
shell.openExternal(url);
|
||||
|
||||
return <Window>null;
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user