disableVideoContextMenu = () => {

dev_hss
hjm 6 years ago
parent f8b5bd6822
commit 71ba413623

@ -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(() => {

Loading…
Cancel
Save