]> cat aescling's git repositories - mastodon.git/commitdiff
Video preload should be a string (#5267)
authorNolan Lawson <nolan@nolanlawson.com>
Sun, 8 Oct 2017 01:06:43 +0000 (18:06 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 8 Oct 2017 01:06:43 +0000 (03:06 +0200)
app/javascript/mastodon/features/video/index.js

index 519a2aac9fc826a542aed57b626dbd56a730274c..8b83fb66ba69e4bd43deb8353d7f370f20856109 100644 (file)
@@ -233,7 +233,7 @@ export default class Video extends React.PureComponent {
           ref={this.setVideoRef}
           src={src}
           poster={preview}
-          preload={startTime ? true : null}
+          preload={startTime ? 'auto' : 'none'}
           loop
           role='button'
           tabIndex='0'