forked from akai/readest
feat(library): backup to and restore from a zip file (#3571)
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
export const configureZip = async () => {
|
||||
import { Configuration } from '@zip.js/zip.js';
|
||||
|
||||
export const configureZip = async (configuration?: Partial<Configuration>) => {
|
||||
const { configure } = await import('@zip.js/zip.js');
|
||||
configure({ useWebWorkers: false, useCompressionStream: false });
|
||||
configure({
|
||||
useWebWorkers: false,
|
||||
useCompressionStream: false,
|
||||
...(configuration ? configuration : {}),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user