Преглед на файлове

open tab in the correct window (see #703)

Gildas преди 4 години
родител
ревизия
fb9d00440e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      extension/core/bg/autosave.js

+ 1 - 1
extension/core/bg/autosave.js

@@ -192,7 +192,7 @@ async function saveContent(message, tab) {
 					pageData.url = URL.createObjectURL(blob);
 					await downloads.downloadPage(pageData, options);
 					if (options.openSavedPage) {
-						const createTabProperties = { active: true, url: URL.createObjectURL(blob) };
+						const createTabProperties = { active: true, url: URL.createObjectURL(blob), windowId: tab.windowId };
 						const index = tab.index;
 						try {
 							await tabs.get({ id: tabId });