Verified Commit d6549860 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Improve handling of edge cases

parent 9f0bdd10
......@@ -324,7 +324,7 @@ chrome.tabs.onRemoved.addListener(stateManager._removeTab);
chrome.webRequest.onBeforeRequest.addListener(function (requestDetails) {
if (requestDetails.tabId !== -1) {
if (requestDetails.tabId !== -1 && stateManager.tabs[requestDetails.tabId]) {
stateManager.tabs[requestDetails.tabId].details = {
'url': requestDetails.url
......
......@@ -88,7 +88,7 @@ helpers.normalizeDomain = function (domain) {
return domain;
};
helpers.extractDomainFromUrl = function (url, normalize) {
helpers.extractDomainFromUrl = function (url = '', normalize) {
let extractedDomain;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment