mirror of
https://github.com/mue/mue.git
synced 2026-07-21 07:54:13 +02:00
chore: update dependencies, change compression, remove unneeded about string
This commit is contained in:
@@ -32,8 +32,10 @@ export default class FileUpload extends PureComponent {
|
||||
return this.props.loadFunction(file);
|
||||
}
|
||||
|
||||
// todo: change number
|
||||
compressAccurately(file, 300).then(async (res) => {
|
||||
compressAccurately(file, {
|
||||
size: 450,
|
||||
accuracy: 0.9
|
||||
}).then(async (res) => {
|
||||
if (settingsSize + res.size > 4850000) {
|
||||
return toast(variables.getMessage('toasts.no_storage'));
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ export default class About extends PureComponent {
|
||||
</a>
|
||||
<Tooltip title={'GitHub Sponsors'}>
|
||||
<a
|
||||
href={'https://github.com/sponsors/' + variables.constants.SPONSORS_USERNAME}
|
||||
href={'https://github.com/sponsors/' + variables.constants.ORG_NAME}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
||||
@@ -162,7 +162,10 @@ export default class CustomSettings extends PureComponent {
|
||||
return this.customBackground(file, false, this.state.currentBackgroundIndex);
|
||||
}
|
||||
|
||||
compressAccurately(file, 300).then(async (res) => {
|
||||
compressAccurately(file, {
|
||||
size: 450,
|
||||
accuracy: 0.9
|
||||
}).then(async (res) => {
|
||||
if (settingsSize + res.size > 4850000) {
|
||||
return toast(variables.getMessage('toasts.no_storage'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user