mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-28 15:46:16 +00:00
fix: Fixed migration not working for previous states, b=bug #11994, c=no-component
This commit is contained in:
@@ -301,11 +301,14 @@ export class nsZenSessionManager {
|
||||
}
|
||||
if (!initialState?.windows?.length) {
|
||||
initialState ||= {};
|
||||
initialState.windows = [
|
||||
{
|
||||
tabs: [],
|
||||
},
|
||||
];
|
||||
let lastSessionState = initialState.lastSessionState || {};
|
||||
initialState.windows = lastSessionState.windows?.length
|
||||
? [...lastSessionState.windows]
|
||||
: [
|
||||
{
|
||||
tabs: [],
|
||||
},
|
||||
];
|
||||
}
|
||||
for (const winData of initialState?.windows || []) {
|
||||
winData.spaces = this._migrationData?.spaces || [];
|
||||
|
||||
Reference in New Issue
Block a user