1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Switched from URIjs to URL and Node Path

This commit is contained in:
Fred Chasen 2016-10-30 22:14:01 +01:00
parent 869a170564
commit 315650006e
22 changed files with 1060 additions and 3614 deletions

View file

@ -303,7 +303,13 @@ Contents.prototype.mediaQueryListeners = function() {
}.bind(this);
for (var i = 0; i < sheets.length; i += 1) {
var rules = sheets[i].cssRules;
var rules;
// Firefox errors if we access cssRules cross-domain
try {
rules = sheets[i].cssRules;
} catch (e) {
return;
}
if(!rules) return; // Stylesheets changed
for (var j = 0; j < rules.length; j += 1) {
//if (rules[j].constructor === CSSMediaRule) {