| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7851629 commit d80bb16
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -239,10 +239,10 @@ export class KeyframeAnimation implements KeyframeAnimationDefinition { | |||
| 239 | 239 | // Catch the animation cancel to prevent unhandled promise rejection warnings | |
| 240 | 240 | animation.play().then(() => { | |
| 241 | 241 | this.animate(view, index + 1, iterations); | |
| 242 | + }, (error: any) => { | ||
| 243 | + traceWrite(typeof error === 'string' ? error : error.message, traceCategories.Animation, traceType.warn); | ||
| 242 | 244 | }).catch((error: any) => { | |
| 243 | - if (error.message.indexOf("Animation cancelled") < 0) { | ||
| 244 | - throw error; | ||
| 245 | - } | ||
| 245 | + traceWrite(typeof error === 'string' ? error : error.message, traceCategories.Animation, traceType.warn); | ||
| 246 | 246 | }); // tslint:disable-line | |
| 247 | 247 | this._nativeAnimations.push(animation); | |
| 248 | 248 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments