Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refining onBeforeRequest handler to minimize the number of requests without corresponding page url. #138

Merged
merged 10 commits into from Aug 2, 2018
Prev
Remove onTabRemoved delay to avoid potential memory leaks.
  • Loading branch information
jsignanini committed Aug 2, 2018
commit d6e7768320946aa429b1a7262dd511e8f1c8c94d
@@ -570,10 +570,8 @@ class EventHandlers {
* @param {number} tab_id tab id
*/
onTabRemoved(tab_id) {
setTimeout(() => {
this._clearTabData(tab_id);
this._resetNotifications();
}, 1000);
this._clearTabData(tab_id);
this._resetNotifications();
}

/**
ProTip! Use n and p to navigate between commits in a pull request.