Optimize font awesome style url.

This commit is contained in:
Kenshin 2018-06-22 09:58:57 +08:00
parent a9ddbb5f87
commit 556a2c5c8a
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,6 @@ export default class Pluginbar extends React.Component {
}
componentWillMount() {
$( "head" ).append( '<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">' );
storage.Plugins( () => {
this.category = {};
this.getCategory();

View File

@ -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( '<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">' );
}
async componentDidMount() {