gleosmith / angular-web-worker

Library that assists with the communication between web workers and Angular apps
MIT License
32 stars 7 forks source link

Feature Request: Default `runInApp` to `!isBrowserCompatible` #6

Open wSedlacek opened 4 years ago

wSedlacek commented 4 years ago

https://github.com/gleosmith/angular-web-worker/blob/e599c29e095224c8fbb4e5fd53793b826a998035/angular/src/lib/worker-manager.ts#L78-L85

Given that if a browser does not support Web Workers then the worker needs to be run in the App would it not make sense to default running in the app with isBrowserCompatible is false rather then having the consumers of the module having to check in every case they may be used?

gleosmith commented 4 years ago

Agreed