* Configure Animation Module
Configure the Animation Module of Angular to disable animation on older iOS devices (<14) where it causes animate not defined errors.
* Simplified disableAnimations
Removed the regex iOS version check as it seemed to return false on iOS 12.5.5 meaning that the `!('animate' in document.documentElement)` did the job already. This also allows users to enable the experimental feature Web Animations on iOS 12.5.5 to have them enabled again.
as note; navigator.userAgent returned the following on an iPad iOS 12.5.5
`Mozilla/5.0 (iPad; CPU OS 12_5_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Mobile/15E148 Safari/604.1`
* added console output on disabled
Added console.error if Web Animations have been disabled due to the browser not supporting this.
Kavita Webui
This project was generated with Angular CLI version 11.0.0.
Development server
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Code scaffolding
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Build
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Running unit tests
Run ng test to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e to execute the end-to-end tests via Protractor.
Run npx playwright test --reporter=line or npx playwright test to run e2e tests.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.