1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

Encode # in filePath

See
https://github.com/mifi/lossless-cut/issues/8
This commit is contained in:
Mikael Finstad 2017-01-28 21:20:23 +01:00
parent 41d6991c11
commit ca858f707c

View File

@ -224,6 +224,10 @@ class App extends React.Component {
});
}
getFileUri() {
return (this.state.filePath || '').replace(/#/g, '%23');
}
render() {
return (<div>
{this.state.filePath ? undefined : <div id="drag-drop-field">DROP VIDEO</div>}
@ -232,7 +236,7 @@ class App extends React.Component {
<div id="player">
<video
src={this.state.filePath}
src={this.getFileUri()}
onRateChange={() => this.playbackRateChange()}
onPlay={() => this.onPlay(true)}
onPause={() => this.onPlay(false)}