robbederks / downzip

NPM library to enable client-side code to stream potentially large files into a zipped download
MIT License
35 stars 12 forks source link

config object for constructor #5

Closed evliu closed 4 years ago

evliu commented 4 years ago

one config I can think of is for an app that has routing, serviceWorker scope should be defined at the base level

robbederks commented 4 years ago

I think it should be possible to share the same scope in the whole webpage, and create a single DownZip object that is used globally. This way, only a single service worker would be registered and shared across all implementations of a zip download.