mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 09:58:45 -04:00
Merge pull request #101 from andreacc/patch-1
Fix in eventCaller for when an element don't have a classList.
This commit is contained in:
@@ -353,7 +353,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