diff --git a/Tab-Organizer-Extension.zip b/Tab-Organizer-Extension.zip index 947db65..aec9656 100644 Binary files a/Tab-Organizer-Extension.zip and b/Tab-Organizer-Extension.zip differ diff --git a/Tab-Organizer-Extension/bg.js b/Tab-Organizer-Extension/bg.js index 1a91ae3..a027878 100644 --- a/Tab-Organizer-Extension/bg.js +++ b/Tab-Organizer-Extension/bg.js @@ -1,5 +1,8 @@ //utility function to obtain base URL from a given URL string function baseURL(url){ + if (url.indexOf("chrome-extension://") != -1){ + url = url.split(/chrome-extension\:\/\/.*?\//).slice(1,2).join(); + } if (url.indexOf("http") != -1){ var temp = url.split("//").slice(1,2).join().toLowerCase(); if (url.indexOf("/") != -1){ @@ -12,7 +15,6 @@ function baseURL(url){ //sorting algorithm function sortTabs(tabs){ - console.log("Hit the browser on click."); var baseURLs = {}; var URLOrder = []; var lastPinned = 0; diff --git a/Tab-Organizer-Extension/manifest.json b/Tab-Organizer-Extension/manifest.json index 7ad26d2..5a1f49d 100644 --- a/Tab-Organizer-Extension/manifest.json +++ b/Tab-Organizer-Extension/manifest.json @@ -1,6 +1,6 @@ { "name": "Tab Organizer", - "version": "1.0", + "version": "1.1.0", "manifest_version": 2, "description": "Organizes and Rearranges tabs by URL.", "background": {