From 556a2c5c8a37d256ef816d016390e6a8c099ce10 Mon Sep 17 00:00:00 2001 From: Kenshin Date: Fri, 22 Jun 2018 09:58:57 +0800 Subject: [PATCH] Optimize font awesome style url. --- src/module/pluginbar.jsx | 1 - src/read/read.jsx | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/module/pluginbar.jsx b/src/module/pluginbar.jsx index 55e44622..ed8bea29 100644 --- a/src/module/pluginbar.jsx +++ b/src/module/pluginbar.jsx @@ -42,7 +42,6 @@ export default class Pluginbar extends React.Component { } componentWillMount() { - $( "head" ).append( '' ); storage.Plugins( () => { this.category = {}; this.getCategory(); diff --git a/src/read/read.jsx b/src/read/read.jsx index aa560267..b9c4a8fd 100644 --- a/src/read/read.jsx +++ b/src/read/read.jsx @@ -43,6 +43,8 @@ class Read extends React.Component { componentWillMount() { $( "body" ).addClass( "simpread-hidden" ); th.Change( this.props.read.theme ); + // hack code + storage.current.fap && $( "head" ).append( '' ); } async componentDidMount() {