Skip to content

Commit

Permalink
bugfix: Fix Category import only working on firefox
Browse files Browse the repository at this point in the history
event.originalTarget is a firefox specific property, replaced with event.target.
  • Loading branch information
johan-bjareholt committed Apr 5, 2021
1 parent fb33162 commit 8482678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/settings/CategorizationSettings.vue
Expand Up @@ -90,7 +90,7 @@ export default {
console.log('Importing categories...');
// Get file from upload
const file = elem.originalTarget.files[0];
const file = elem.target.files[0];
if (file.type != 'application/json') {
console.error('Only JSON files are possible to import');
return;
Expand Down

0 comments on commit 8482678

Please sign in to comment.