From 1669ddd6c71a122853fccfc884598382d3e4111d Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Wed, 15 Feb 2017 23:51:24 +0530 Subject: [PATCH] Remove default replacing of new tab..finally. Fixes #37 --- src/eventPage.js | 4 ++-- src/index.html | 31 +++++++++++++++++++------------ src/style.css | 1 + 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/eventPage.js b/src/eventPage.js index 6e40f37..e313bcd 100644 --- a/src/eventPage.js +++ b/src/eventPage.js @@ -12,10 +12,10 @@ chrome.browserAction.onClicked.addListener(function(){ // Listen for tabs getting created. chrome.tabs.onCreated.addListener(function (tab) { // If a new tab is opened (without any URL), check user's - // replace Tab setting and act accordingly. + // replace Tab setting and act accordingly. Default is false. if (tab.url === 'chrome://newtab/') { chrome.storage.sync.get({ - replaceNewTab: true + replaceNewTab: false }, function(items) { if (items.replaceNewTab) { chrome.tabs.update(tab.id, { diff --git a/src/index.html b/src/index.html index f34d482..e6a0481 100644 --- a/src/index.html +++ b/src/index.html @@ -233,13 +233,8 @@