mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -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);
|
.addEventListener("click", show_experimental);
|
||||||
|
|
||||||
function eventCaller(event, className, funcName) {
|
function eventCaller(event, className, funcName) {
|
||||||
if (!event.target.classList.contains(className)) {
|
if (!event.target.classList || !event.target.classList.contains(className)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
funcName(event);
|
funcName(event);
|
||||||
|
Reference in New Issue
Block a user