Format source.

This commit is contained in:
Kenshin 2019-04-05 14:21:33 +08:00
parent 3358bc0ac6
commit 29e4cedd83

View File

@ -89,6 +89,10 @@ class Read extends React.Component {
this.props.read.fontfamily && ss.FontFamily( this.props.read.fontfamily );
this.props.read.fontsize && ss.FontSize( this.props.read.fontsize );
this.props.read.layout && ss.Layout( this.props.read.layout );
this.props.read.site.css && this.props.read.site.css.length > 0
&& ss.SiteCSS( this.props.read.site.css );
!this.props.wrapper.avatar && this.props.read.toc
&& toc.Render( "sr-read", $( "sr-rd-content" ), this.props.read.theme, this.props.read.toc_hide );
ss.Preview( this.props.read.custom );
storage.pr.state == "txt" && $( "sr-rd-content" ).css({ "word-wrap": "break-word", "white-space": "pre-wrap" });
@ -99,10 +103,6 @@ class Read extends React.Component {
storage.pr.Beautify( $( "sr-rd-content" ) );
storage.pr.Format( rdcls );
!this.props.wrapper.avatar && this.props.read.toc && toc.Render( "sr-read", $( "sr-rd-content" ), this.props.read.theme, this.props.read.toc_hide );
this.props.read.site.css && this.props.read.site.css.length > 0 &&
ss.SiteCSS( this.props.read.site.css );
kbd.Render( $( "sr-rd-content" ));
tooltip.Render( rdclsjq );
waves.Render({ root: rdclsjq });