Browse Source

fixed cors issue with different ports on same host

pull/82/head
TN1ck 8 years ago
parent
commit
7948a8d13c
  1. 3
      resemble.js

3
resemble.js

@ -69,7 +69,8 @@ URL: https://github.com/Huddle/Resemble.js
var httpRegex = /^https?:\/\//;
var document = typeof window != "undefined" ? window.document : {};
var documentDomainRegex = new RegExp('^https?://' + document.domain);
var location = typeof window != "undefined" ? window.location : {};
var documentDomainRegex = new RegExp('^https?://' + location.href.split("/")[2]);
var resemble = function( fileData ){

Loading…
Cancel
Save