File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 488488 xhr . timeout = CONFIG . HEALTH_TIMEOUT ;
489489
490490 xhr . onload = function ( ) {
491- self . available = xhr . status >= 200 && xhr . status < 300 ;
491+ if ( xhr . status >= 200 && xhr . status < 300 ) {
492+ try {
493+ var resp = JSON . parse ( xhr . responseText ) ;
494+ self . available = resp . status === 'ok' ;
495+ } catch ( e ) {
496+ self . available = false ;
497+ }
498+ } else {
499+ self . available = false ;
500+ }
492501 resolve ( { available : self . available } ) ;
493502 } ;
494503
Original file line number Diff line number Diff line change 66
77setup (
88 name = "epub-browser" , # 在PyPI上显示的项目名称
9- version = "1.8.14 " , # 初始版本号
9+ version = "1.8.15 " , # 初始版本号
1010 author = "dfface" , # 作者名
1111 author_email = "dfface@sina.com" , # 作者邮箱
1212 keywords = "epub reader html export browser convert calibre-web calibre kindle web server local" ,
You can’t perform that action at this time.
0 commit comments