mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 09:58:45 -04:00
Fix in eventCalled
For when an element don't have a classList. It was giving an error. Just a little fix.
This commit is contained in:
@@ -350,7 +350,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
.addEventListener("click", show_experimental);
|
||||
|
||||
function eventCaller(event, className, funcName) {
|
||||
if (!event.target.classList.contains(className)) {
|
||||
if (!event.target.classList || !event.target.classList.contains(className)) {
|
||||
return;
|
||||
}
|
||||
funcName(event);
|
||||
|
Reference in New Issue
Block a user