Crash when accessing script from another domain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
typeface.js |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to use the plugin hosted on another domain, different from the current one, typeface.js fails to determine the stylesheets from the current page.
Around line 793, I check more thoroughly if I can use match to check the domain. If I don't find a proper domain, I use the last good index, which will always be at least 0:
var re = new RegExp(
for (var index=0; index < document.
if (document.
break;
}
}
//Fix when no href matches - 20130802
if (index === document.
index = document.
}