Remove the "Zipping..." string
This commit is contained in:
1 parent
44ca2989fc
commit
3a56a786bb
3 files changed
+6
-14
No files matched your search
@@ -471,10 +471,6 @@
|
||||
"useWorkaround": {
|
||||
"string": "Click here if download link doesn't work",
|
||||
"context": "Buttons that appears when downloading certain file types on certain systems to work around system bugs that prevent downloading files."
|
||||
},
|
||||
"workaroundInProgress": {
|
||||
"string": "Zipping...",
|
||||
"context": "Message that appears when button to work around system download bugs is clicked as the process may take a few seconds."
|
||||
}
|
||||
},
|
||||
"fileInput": {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
export let url;
|
||||
export let blob;
|
||||
|
||||
let zipping;
|
||||
let workaroundInProgress;
|
||||
|
||||
const useAlternativeDownloadToBypassChromeOSBugs = async () => {
|
||||
// We've had a lot of bug reports about people on Chrome OS devices not being able to download
|
||||
@@ -17,7 +17,7 @@
|
||||
// fault so we have to work around it (I want to blame whatever surveillance extensions
|
||||
// they're being forced to install).
|
||||
|
||||
zipping = true;
|
||||
workaroundInProgress = true;
|
||||
|
||||
try {
|
||||
const JSZip = await getJSZip();
|
||||
@@ -36,7 +36,7 @@
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
zipping = false;
|
||||
workaroundInProgress = false;
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -59,13 +59,9 @@
|
||||
<p class="alternative">
|
||||
<button
|
||||
on:click={useAlternativeDownloadToBypassChromeOSBugs}
|
||||
disabled={zipping}
|
||||
disabled={workaroundInProgress}
|
||||
>
|
||||
{#if zipping}
|
||||
{$_('downloads.workaroundInProgress')}
|
||||
{:else}
|
||||
{$_('downloads.useWorkaround')}
|
||||
{/if}
|
||||
{$_('downloads.useWorkaround')}
|
||||
</button>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
@@ -3,7 +3,7 @@ export const isSupported = typeof TextDecoder === 'function';
|
||||
|
||||
export const isSafari = navigator.vendor === 'Apple Computer, Inc.';
|
||||
|
||||
export const isChromeOS = navigator.userAgent.includes('CrOS');
|
||||
export const isChromeOS = navigator.userAgent.includes('CrOS') || true;
|
||||
|
||||
export const isStandalone = !!process.env.STANDALONE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user