Skip to content

Commit 5c07376

Browse files
committed
Fix pinned tabs on restore bug
1 parent 9cbdaf5 commit 5c07376

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/background.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ var spaces = (() => {
551551
spacesPopupWindowId,
552552
{ populate: true },
553553
spacesWindow => {
554+
if (!spacesWindow) return;
555+
554556
// remove popup from history
555557
if (
556558
spacesWindow.tabs.length > 0 &&
@@ -760,7 +762,10 @@ var spaces = (() => {
760762
if (curSessionTab.pinned) {
761763
let pinnedTabId = false;
762764
newWindow.tabs.some(curNewTab => {
763-
if (curNewTab.url === curSessionTab.url) {
765+
if (
766+
curNewTab.url === curSessionTab.url ||
767+
curNewTab.pendingUrl === curSessionTab.url
768+
) {
764769
pinnedTabId = curNewTab.id;
765770
return true;
766771
}

0 commit comments

Comments
 (0)