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)