added more tests to increase coverage to 100 for protocol handler

This commit is contained in:
Vishwas Shashidhar
2019-03-01 22:43:50 +05:30
committed by Kiran Niranjan
parent 7ee09ab787
commit 68efbfa0e8
2 changed files with 29 additions and 1 deletions

View File

@@ -45,7 +45,9 @@ class ProtocolHandler {
}
// This is needed for mac OS as it brings pop-outs to foreground
// (if it has been previously focused) instead of main window
if (isMac) activate(apiName.mainWindowName);
if (isMac) {
activate(apiName.mainWindowName);
}
if (ProtocolHandler.isValidProtocolUri(uri)) {
this.preloadWebContents.send('protocol-action', uri);