Fix for #1632: Pinned tabs cannot be loaded as 'discarded'
This commit is contained in:
parent
da79841201
commit
9e12014c07
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue