Przeglądaj źródła

add default value

Gildas 1 rok temu
rodzic
commit
76769a80c0
1 zmienionych plików z 1 dodań i 1 usunięć
  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,