Browse Source

Merge pull request #35 from azer/master

Read document variable by checking if it exists
pull/37/head
James Cryer 10 years ago
parent
commit
702931123c
  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