Fix for #1632: Pinned tabs cannot be loaded as 'discarded'

This commit is contained in:
Kendall Werts 2020-02-13 16:54:18 -06:00
parent da79841201
commit 9e12014c07

View file

@ -310,12 +310,13 @@ const backgroundLogic = {
for (let object of containerState.hiddenTabs) { // eslint-disable-line prefer-const for (let object of containerState.hiddenTabs) { // eslint-disable-line prefer-const
// do not show already opened url // do not show already opened url
const noload = !object.pinned;
if (object.url !== options.alreadyShowingUrl) { if (object.url !== options.alreadyShowingUrl) {
promises.push(this.openNewTab({ promises.push(this.openNewTab({
userContextId: userContextId, userContextId: userContextId,
url: object.url, url: object.url,
nofocus: options.nofocus || false, nofocus: options.nofocus || false,
noload: true, noload: noload,
pinned: object.pinned, pinned: object.pinned,
})); }));
} }