Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 44b0d83

Browse files
committed
Merge branch 'develop' of https://github.com/readium/readium-js-viewer into develop
2 parents d056e10 + 169bc20 commit 44b0d83

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/EpubLibrary.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Versioning){
6161
} else {
6262
cssRule = styleSheet.rules[ii];
6363
}
64-
if (cssRule) {
64+
if (cssRule && cssRule.selectorText) {
6565
if (cssRule.selectorText.toLowerCase()=='.library-item') {
6666
heightRule = cssRule;
6767
}
@@ -79,6 +79,7 @@ Versioning){
7979

8080

8181
var setItemHeight = function(){
82+
if (!heightRule || !noCoverRule) return;
8283

8384
var medWidth = 2,
8485
smWidth = 3,

lib/EpubReader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,9 @@ Readium){
798798
$(document.body).removeClass('hide-ui');
799799
setTimeout(function(){ $("#aboutButt1").focus(); }, 50);
800800
});
801-
$('#about-dialog').on('shown.bs.modal', function(){
801+
$('#about-dialog').on('shown.bs.modal', function(){
802802
Keyboard.scope('about');
803-
});
803+
});
804804

805805
var readerSettings;
806806
if (settings.reader){
@@ -910,7 +910,7 @@ Readium){
910910
};
911911

912912
return {
913-
loadUI : applyKeyboardSettingsAndLoadUi,
913+
loadUI : applyKeyboardSettingsAndLoadUi,
914914
unloadUI : unloadReaderUI
915915
};
916916

0 commit comments

Comments
 (0)