Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
u3u committed Dec 3, 2018
1 parent 204bd40 commit bc3f47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@moefe/vue-aplayer/components/APlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default class APlayer extends Vue.Component<
private get isLoading(): boolean {
const { preload, currentPlayed, currentLoaded } = this;
const { src, paused, duration } = this.media;
const loading = (!!src && currentPlayed > currentLoaded) || !duration;
const loading = !!src && (currentPlayed > currentLoaded || !duration);
return preload === 'none' ? !paused && loading : loading;
}

Expand Down

0 comments on commit bc3f47e

Please sign in to comment.