View Single Post
Old 11-11-2016, 10:04 AM   #30
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 494368
Join Date: Feb 2009
Device: ONYX M96
Memo: the working code to catch "my" ADE problem is this:

Code:
 try { //I check if the browser is the bleah ADE
        var lettore=navigator.epubReadingSystem.name;
        var adobeChiavicaMaledetta="RMSDK";
        if (lettore==adobeChiavicaMaledetta) {

                       
                        document.getElementsByTagName("div")[0].className="content";
                        document.getElementsByTagName("div")[1].className="row";
                            } ///stop check
                            
        } // stop trying to check                  
                        catch(e) {// if the browser is bad and does not know epubReadingSystem method...
                                    } //please rest
This because some ebook readers (Lekt on Android and Azardi) give error when meet navigator.epubReadingSystem.name and stop the jevascript code.
fbrzvnrnd is offline   Reply With Quote