From 29e4cedd83b7b5da2f7a7722a130fc3c12b7e893 Mon Sep 17 00:00:00 2001 From: Kenshin Date: Fri, 5 Apr 2019 14:21:33 +0800 Subject: [PATCH] Format source. --- src/read/read.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/read/read.jsx b/src/read/read.jsx index c16c663e..68e9c3dc 100644 --- a/src/read/read.jsx +++ b/src/read/read.jsx @@ -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 });