Skip to content

Commit

Permalink
Update Masthead.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Mekomancer authored Dec 1, 2021
1 parent a507848 commit d870421
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/HomePage/Masthead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { flexRow, flexColumn, padding, link } from "styles/common"

const videoHeight = 300

Object.defineProperty(HTMLMediaElement.prototype, 'muted', {
set: () => {},
});

function VideoLink() {
const css = useStyle({
...flexRow(undefined, "center"),
Expand All @@ -21,7 +25,7 @@ function VideoLink() {
return (
<Link {...css()} to="random">
<SrOnly>View random polyhedron</SrOnly>
<video muted autoPlay playsInline src={video} height={videoHeight} />
<video muted={true} autoPlay={true} playsInline={true} src={video} height={videoHeight} />
</Link>
)
}
Expand Down

0 comments on commit d870421

Please sign in to comment.