|
|
|
@ -334,8 +334,17 @@ class App extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
disableVideoContextMenu = () => {
|
|
|
|
|
window.$( "body" ).on( "mousedown", "video", function() {
|
|
|
|
|
if(event.which === 3) {
|
|
|
|
|
window.$('video').bind('contextmenu',function () { return false; });
|
|
|
|
|
} else {
|
|
|
|
|
window.$('video').unbind('contextmenu');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
|
|
|
|
|
this.disableVideoContextMenu();
|
|
|
|
|
|
|
|
|
|
// force an update if the URL changes
|
|
|
|
|
history.listen(() => {
|
|
|
|
|