瀏覽代碼

add default value

Gildas 1 年之前
父節點
當前提交
76769a80c0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/bg/downloads.js

+ 1 - 1
src/core/bg/downloads.js

@@ -618,7 +618,7 @@ async function saveToRestFormApi(taskId, content, url, token, restApiUrl, fileFi
 	}
 }
 
-async function downloadPageForeground(taskId, filename, content, mimeType, tabId, { foregroundSave, sharePage }) {
+async function downloadPageForeground(taskId, filename, content, mimeType, tabId, { foregroundSave, sharePage } = {}) {
 	const serializer = yabson.getSerializer({
 		filename,
 		taskId,