Skip to content

Commit bd90aa2

Browse files
committed
keeps google results from overwriting the search page when they are opened. Issue #57
1 parent 624ec1d commit bd90aa2

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 (cookieStoreId != "firefox-default") {
243+
browser.tabs.remove(tab.id);
244+
}
241245
}
242246

243247
function isGoogleURL (url) {

0 commit comments

Comments
 (0)