mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-08 16:00:49 +00:00
feat: Clone the previous state, b=no-bug, c=no-component
This commit is contained in:
@@ -157,9 +157,9 @@ class nsZenSessionManager {
|
||||
|
||||
getNewWindowData() {
|
||||
lazy.SessionSaver.run();
|
||||
const state = lazy.SessionStore.getCurrentState(forceUpdateAllWindows);
|
||||
const state = lazy.SessionStore.getCurrentState(true);
|
||||
const windows = state.windows || {};
|
||||
let newWindow = { ...Cu.cloneInto(windows[Object.keys(windows)[0]], {}), ...this.#sidebar };
|
||||
let newWindow = Cu.cloneInto(windows[0], {});
|
||||
return { windows: [newWindow] };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user