diff --git a/resemble.js b/resemble.js index 0a271a2..bdd3756 100644 --- a/resemble.js +++ b/resemble.js @@ -60,6 +60,7 @@ URL: https://github.com/Huddle/Resemble.js var largeImageThreshold = 1200; var httpRegex = /^https?:\/\//; + var document = typeof window != "undefined" ? window.document : {}; var documentDomainRegex = new RegExp('^https?://' + document.domain); _this['resemble'] = function( fileData ){