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:
parent
869a170564
commit
315650006e
22 changed files with 1060 additions and 3614 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue