VLC support
This commit is contained in:
@@ -21,10 +21,12 @@ function dispatcher (...args) {
|
||||
var handler = _dispatchers[json]
|
||||
if (!handler) {
|
||||
handler = _dispatchers[json] = (e) => {
|
||||
// Don't click on whatever is below the button
|
||||
e.stopPropagation()
|
||||
// Don't regisiter clicks on disabled buttons
|
||||
if (e.currentTarget.classList.contains('disabled')) return
|
||||
if (e && e.stopPropagation && e.currentTarget) {
|
||||
// Don't click on whatever is below the button
|
||||
e.stopPropagation()
|
||||
// Don't register clicks on disabled buttons
|
||||
if (e.currentTarget.classList.contains('disabled')) return
|
||||
}
|
||||
_dispatch.apply(null, args)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user