Electron-206 - Added code comments

This commit is contained in:
Kiran Niranjan
2017-11-09 19:09:52 +05:30
committed by Kiran Niranjan
parent 0b7bad60e3
commit 3f50065ded

View File

@@ -14,7 +14,10 @@ electron.app.on('login', (event, webContents, request, authInfo, callback) => {
event.preventDefault();
if(currentAuthURL !== request.url) {
// This check is to determine whether the request is for the same
// host if so then increase the login tries from which we can
// display invalid credentials
if (currentAuthURL !== request.url) {
currentAuthURL = request.url;
} else {
tries++