mirror of
https://github.com/mue/mue.git
synced 2026-07-16 05:23:49 +02:00
fix: various bug fixes and refactor search settings
This commit is contained in:
@@ -226,12 +226,12 @@ export default class Background extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
if (this.state.video === true) {
|
||||
const checkValue = (setting) => {
|
||||
const enabled = (setting) => {
|
||||
return (localStorage.getItem(setting) === 'true');
|
||||
};
|
||||
|
||||
return (
|
||||
<video autoPlay muted={checkValue('backgroundVideoMute')} loop={checkValue('backgroundVideoLoop')} id='backgroundVideo'>
|
||||
<video autoPlay muted={enabled('backgroundVideoMute')} loop={enabled('backgroundVideoLoop')} id='backgroundVideo'>
|
||||
<source src={this.state.url}/>
|
||||
</video>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user