diff --git a/index.js b/index.js index 1fc286e..19bb10f 100644 --- a/index.js +++ b/index.js @@ -48,6 +48,8 @@ const methodMap = [ ]; const nativeAPI = (() => { + if (typeof document === 'undefined') { return false } + const unprefixedMethods = methodMap[0]; const returnValue = {};