Explorar o código

use BACKGROUND_SAVE_SUPPORTED constant

Gildas hai 1 ano
pai
achega
861939cf77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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({