aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/utils.js')
-rw-r--r--src/js/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/utils.js b/src/js/utils.js
index f99a69ab..03e51f97 100644
--- a/src/js/utils.js
+++ b/src/js/utils.js
@@ -9,7 +9,7 @@ const utils = {
// Check variable types
is: {
plyr(input) {
- return this.instanceof(input, Plyr);
+ return this.instanceof(input, window.Plyr);
},
object(input) {
return this.getConstructor(input) === Object;
@@ -620,7 +620,7 @@ const utils = {
const event = new CustomEvent(type, {
bubbles: utils.is.boolean(bubbles) ? bubbles : false,
detail: Object.assign({}, detail, {
- plyr: this instanceof Plyr ? this : null,
+ plyr: utils.is.plyr(this) ? this : null,
}),
});