Skip to content

Commit 29c1157

Browse files
authored
Merge pull request #62 from kendallcorner/master
Fix for Issue #57
2 parents 624ec1d + 4269582 commit 29c1157

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

background.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,14 @@ function reopenTab ({url, tab, cookieStoreId}) {
234234
url,
235235
cookieStoreId,
236236
active: tab.active,
237-
index: tab.index,
237+
index: tab.index + 1,
238238
windowId: tab.windowId
239239
});
240-
browser.tabs.remove(tab.id);
240+
// We do not want to erase google container if going from
241+
// google container back to default.
242+
if (!(isSearchPageURL(tab.url))) {
243+
browser.tabs.remove(tab.id);
244+
}
241245
}
242246

243247
function isGoogleURL (url) {

0 commit comments

Comments
 (0)