further corse tinted canvas fix (sub.domain.com didn't get detected as CORS of domain.com)

This commit is contained in:
HF 2020-06-21 05:43:29 +02:00
parent e93ddd0576
commit bc7613b431

View File

@ -7,7 +7,7 @@
*/
const corsRegEx = /^([\w]+:)?\/\//;
function isCors(url) {
return corsRegEx && url.indexOf(window.location.host) === -1;
return corsRegEx && url.replace(corsRegEx, '').indexOf(window.location.host);
}
/*