diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/Switch.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/components/Switch.js b/app/components/Switch.js index 59f997d879..c278cfbd2c 100644 --- a/app/components/Switch.js +++ b/app/components/Switch.js @@ -76,16 +76,12 @@ export default class Switch extends Component { handleChange = (e: Event) => { const startTime = this.state.startTime; - const eventTarget = e.target; + const eventTarget: Object = e.target; if(typeof(startTime) !== 'number') { throw new Error('startTime must be a number.'); } - if(!(eventTarget instanceof HTMLInputElement)) { - throw new Error('e.target must be an instance of HTMLInputElement.'); - } - const dt = e.timeStamp - startTime; if(this.state.ignoreChange) { |
