Parcourir la source

add default value

Gildas il y a 1 an
Parent
commit
76769a80c0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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,