Browse Source

fix 263ad674: show default zip name again

+ remove unnecxessary linebreak
tophf 2 years ago
parent
commit
e6edc1b273

+ 1 - 2
src/background/utils/storage-cache.js

@@ -256,8 +256,7 @@ async function undoImport(port) {
     if (toRemove.length) await cachedApi[REMOVE](toRemove);
     await cachedApi[SET](old);
     port.postMessage(true);
-    await sendCmd('Reload',
-      delay);
+    await sendCmd('Reload', delay);
     location.reload();
   });
   old = await api.get();

+ 1 - 2
src/options/views/tab-settings/vm-export.vue

@@ -51,8 +51,7 @@ const exporting = ref(false);
 const ffDownload = ref(IS_FIREFOX && {});
 const fileName = computed(() => {
   const tplComp = tpl.value;
-  const text = tplComp?.text.trim();
-  return text && `${formatDate(text || tplComp.defaultValue)}.zip`;
+  return tplComp && `${formatDate(tplComp.text.trim() || tplComp.defaultValue)}.zip`;
 });
 
 async function handleExport() {