From bd02f83c12bbfd7f563a63a39e6e998ee531dd1a Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 17 Aug 2017 21:29:00 -0700 Subject: [PATCH] Ping pong back to the right Prettier version --- js/components/MainWindow/Position.js | 5 +++-- js/components/MainWindow/ShadeTime.js | 7 +++---- js/media.js | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/js/components/MainWindow/Position.js b/js/components/MainWindow/Position.js index 37dcc836..89592069 100644 --- a/js/components/MainWindow/Position.js +++ b/js/components/MainWindow/Position.js @@ -43,8 +43,9 @@ const Position = ({ const mapStateToProps = ({ media, userInput }) => { const position = media.length ? media.timeElapsed / media.length * 100 : 0; - const displayedPosition = - userInput.focus === "position" ? userInput.scrubPosition : position; + const displayedPosition = userInput.focus === "position" + ? userInput.scrubPosition + : position; return { displayedPosition, diff --git a/js/components/MainWindow/ShadeTime.js b/js/components/MainWindow/ShadeTime.js index 343ac77b..64d9ba71 100644 --- a/js/components/MainWindow/ShadeTime.js +++ b/js/components/MainWindow/ShadeTime.js @@ -14,10 +14,9 @@ class Time extends React.Component { this.props.dispatch({ type: TOGGLE_TIME_MODE }); } render() { - const seconds = - this.props.timeMode === "ELAPSED" - ? this.props.timeElapsed - : this.props.length - this.props.timeElapsed; + const seconds = this.props.timeMode === "ELAPSED" + ? this.props.timeElapsed + : this.props.length - this.props.timeElapsed; const timeObj = getTimeObj(seconds); return ( diff --git a/js/media.js b/js/media.js index 82136b20..a76c3291 100644 --- a/js/media.js +++ b/js/media.js @@ -178,8 +178,9 @@ export default { this._source.connect(this._analyser); this._source.connect(this._preamp); - this._position = - typeof position !== "undefined" ? position : this._position; + this._position = typeof position !== "undefined" + ? position + : this._position; this._startTime = this._context.currentTime - this._position; this._source.start(0, this._position); this._playing = true;