further corse tinted canvas fix (sub.domain.com didn't get detected as CORS of domain.com)
This commit is contained in:
parent
e93ddd0576
commit
bc7613b431
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user