소스 검색

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 });