Преглед изворни кода

use BACKGROUND_SAVE_SUPPORTED constant

Gildas пре 1 година
родитељ
комит
861939cf77
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/bg/config.js

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

@@ -640,7 +640,7 @@ async function exportConfig() {
 	const config = await getConfig();
 	const textContent = JSON.stringify({ profiles: config.profiles, rules: config.rules, maxParallelWorkers: config.maxParallelWorkers, processInForeground: config.processInForeground }, null, 2);
 	const filename = `singlefile-settings-${(new Date()).toISOString().replace(/:/g, "_")}.json`;
-	if (IS_NOT_SAFARI) {
+	if (BACKGROUND_SAVE_SUPPORTED) {
 		const url = URL.createObjectURL(new Blob([textContent], { type: "text/json" }));
 		try {
 			await download({