polish electron.d.ts

This commit is contained in:
Benjamin Pasero
2016-01-06 13:01:45 +01:00
parent eb1f52ce75
commit 7d32e8f2ea
3 changed files with 11 additions and 11 deletions

View File

@@ -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;
};
}