Fix for #1632: Pinned tabs cannot be loaded as 'discarded'
This commit is contained in:
@@ -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,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user