This repository was archived by the owner on May 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments