From ad3985c6f7565c4bbbb8ed5045ef50c982968d21 Mon Sep 17 00:00:00 2001 From: Alper Alkan Date: Sat, 4 May 2024 16:05:51 +0200 Subject: [PATCH] support for videos --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index f7a40c5..68d8801 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,4 @@ -export const isSupported = node => node.tagName === 'IMG' +export const isSupported = node => node.tagName === 'IMG' || node.tagName === 'VIDEO' /* eslint-disable-next-line no-prototype-builtins */ export const isNodeList = selector => NodeList.prototype.isPrototypeOf(selector)