From b6bfa030eb6e0b85c6333b6883670455aad8f46c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 5 Dec 2016 23:08:50 -0500 Subject: [PATCH] remove unnecessary function --- src/popup/app/current/currentController.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/popup/app/current/currentController.js b/src/popup/app/current/currentController.js index 3c7c02ca..c7e974a0 100644 --- a/src/popup/app/current/currentController.js +++ b/src/popup/app/current/currentController.js @@ -74,7 +74,7 @@ angular if (site && canAutofill && pageDetails && pageDetails.length) { for (var i = 0; i < pageDetails.length; i++) { - if (pageDetails[i].tabId != tabId) { + if (pageDetails[i].tabId !== tabId) { continue; } @@ -87,9 +87,7 @@ angular fillScript: fillScript }, { frameId: pageDetails[i].frameId - }, function () { - $window.close(); - }); + }, $window.close); } } }