Browse Source

Read document variable by checking if it exists

pull/35/head
E.Azer Koçulu 10 years ago
parent
commit
85e2fe1228
  1. 1
      resemble.js

1
resemble.js

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

Loading…
Cancel
Save