diff --git a/src/locales/en.json b/src/locales/en.json index 78294b8..12b20b9 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -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": { diff --git a/src/p4/Downloads.svelte b/src/p4/Downloads.svelte index a42e00f..62a0c88 100644 --- a/src/p4/Downloads.svelte +++ b/src/p4/Downloads.svelte @@ -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; }; @@ -59,13 +59,9 @@

{/if} diff --git a/src/p4/environment.js b/src/p4/environment.js index 0511e08..c3d3e9a 100644 --- a/src/p4/environment.js +++ b/src/p4/environment.js @@ -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;