From 297a1169239f6e9cd0c7b4397121bab0cea44c23 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 30 Jul 2021 03:23:06 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chrome.js b/lib/chrome.js index 520b4ed..ecfc615 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -513,7 +513,7 @@ var ChromeObject = function() { this.hasClass = function(seletctor, className) { try { - var result = this.getEvaluatedValue('document.querySelector(".html5-video-player").getAttribute("class")'); + var result = this.getEvaluatedValue('document.querySelector("' + seletctor + '").getAttribute("class")'); if (typeof(result) === "string") { return (result.split(' ').indexOf(className) > -1); } else {