mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 02:57:30 +00:00
Add option to disable marquee
Allows us to do deterministic screenshots
This commit is contained in:
parent
9277afecc9
commit
338cddbcb7
2 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { getTimeStr } from "../../utils";
|
||||
import { disableMarquee } from "../../config";
|
||||
|
||||
import { STEP_MARQUEE } from "../../actionTypes";
|
||||
import CharacterString from "../CharacterString";
|
||||
|
|
@ -77,7 +78,7 @@ class Marquee extends React.Component {
|
|||
|
||||
componentDidMount() {
|
||||
this.stepHandle = setInterval(() => {
|
||||
if (this.state.stepping) {
|
||||
if (this.state.stepping && !disableMarquee) {
|
||||
this.props.dispatch({ type: STEP_MARQUEE });
|
||||
}
|
||||
}, 220);
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ export const initialTracks = config.initialTracks || [
|
|||
];
|
||||
|
||||
export const hideAbout = config.hideAbout || false;
|
||||
export const disableMarquee = config.disableMarquee || false;
|
||||
export const initialState = config.initialState || undefined;
|
||||
export const milkdrop = config.milkdrop || false;
|
||||
export const sentryDsn = SENTRY_DSN;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue