Browse Source

add default value

Gildas 1 year ago
parent
commit
76769a80c0
1 changed files with 1 additions and 1 deletions
  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({
 	const serializer = yabson.getSerializer({
 		filename,
 		filename,
 		taskId,
 		taskId,