Embed base64 logo directly in source to avoid load
This commit is contained in:
parent
2d80b19414
commit
3363ccd47e
webclient
Before ![]() (image error) Size: 538 B After ![]() (image error) Size: 538 B ![]() ![]() |
Before ![]() (image error) Size: 6.5 KiB After ![]() (image error) Size: 6.5 KiB ![]() ![]() |
Before ![]() (image error) Size: 5.4 KiB After ![]() (image error) Size: 5.4 KiB ![]() ![]() |
Before ![]() (image error) Size: 500 B After ![]() (image error) Size: 500 B ![]() ![]() |
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { Link } from 'react-router-dom';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import localForage from 'localforage';
|
||||
import { sourceLink, infoLine } from './utils.js';
|
||||
import { sourceLink, infoLine, logos } from './utils.js';
|
||||
|
||||
class Feed extends React.Component {
|
||||
constructor(props) {
|
||||
|
@ -71,7 +71,7 @@ class Feed extends React.Component {
|
|||
|
||||
<div className='title'>
|
||||
<Link className='link' to={'/' + x.id}>
|
||||
<img className='source-logo' src={'logos/'+x.source+'.png'} alt='source logo' /> {x.title}
|
||||
<img className='source-logo' src={logos[x.source]} alt='source logo' /> {x.title}
|
||||
</Link>
|
||||
|
||||
<span className='source'>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user