Huddle/Resemble.js — pull request #25 by Shadowblazen (2014-08-01 04:00:57+00:00)
Title: Updated crossorigin settings

The crossorigin settings are currently breaking image tests in Firefox and Safari when the images are not cross-domain (e.g. images specified as base64 strings, or using relative pathing).

This change enables CORS on the image if and only if the image is 1) specified using absolute pathing with the HTTP or HTTPS protocol and 2) the image is from a different domain than resemble.js is being run on.