atmosphere explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

disable compression on webkit

Juliet 3f7c1026 9f182228

+5 -1
+5 -1
src/views/car/unpack.tsx
··· 7 7 import { createLogger, LoggerView } from "./logger.jsx"; 8 8 import { isIOS, toJsonValue } from "./shared.jsx"; 9 9 10 + // HACK: Disable compression on WebKit due to an error being thrown 11 + const isWebKit = 12 + isIOS || (/AppleWebKit/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent)); 13 + 10 14 const INVALID_CHAR_RE = /[<>:"/\\|?*\x00-\x1F]/g; 11 15 const filenamify = (name: string) => { 12 16 return name.replace(INVALID_CHAR_RE, "~"); ··· 88 92 const filename = `${entry.collection}/${filenamify(entry.rkey)}.json`; 89 93 const data = JSON.stringify(record, null, 2); 90 94 91 - yield { filename, data, compress: "deflate" }; 95 + yield { filename, data, compress: isWebKit ? false : "deflate" }; 92 96 count++; 93 97 progress.update(`Unpacking records (${count} entries)`); 94 98 } catch {