mirror of
https://github.com/mue/mue.git
synced 2026-07-23 08:47:19 +02:00
fix: many bug fixes and some performance improvements
Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
@@ -8,9 +8,8 @@ import Photographer from '@material-ui/icons/Person';
|
||||
import Download from '@material-ui/icons/GetApp';
|
||||
|
||||
const toDataURL = async (url) => {
|
||||
const response = await fetch(url);
|
||||
const blob = await response.blob();
|
||||
return URL.createObjectURL(blob);
|
||||
const res = await fetch(url);
|
||||
return URL.createObjectURL(await res.blob());
|
||||
};
|
||||
|
||||
const downloadImage = async (info) => {
|
||||
@@ -31,7 +30,7 @@ export default function PhotoInformation(props) {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='photoInformation' style={{'display': 'none'}}>
|
||||
<div className='photoInformation' style={{ 'display': 'none' }}>
|
||||
<h1>{language.credit} <span id='credit'>{props.info.credit}</span></h1>
|
||||
<Info className='photoInformationHover'/>
|
||||
<div className={props.className || 'infoCard'}>
|
||||
|
||||
Reference in New Issue
Block a user