mirror of
https://github.com/mue/mue.git
synced 2026-07-19 15:04:11 +02:00
fix: sideload tab and file uploads
This commit is contained in:
@@ -14,7 +14,9 @@ export default class FileUpload extends PureComponent {
|
||||
|
||||
if (this.props.type === 'settings') {
|
||||
reader.readAsText(file, 'UTF-8');
|
||||
return this.props.loadFunction(e);
|
||||
reader.onload = (e) => {
|
||||
return this.props.loadFunction(e.target.result);
|
||||
}
|
||||
} else {
|
||||
// background upload
|
||||
const settings = {};
|
||||
|
||||
Reference in New Issue
Block a user