Skip to content

Commit 8482678

Browse files
bugfix: Fix Category import only working on firefox
event.originalTarget is a firefox specific property, replaced with event.target.
1 parent fb33162 commit 8482678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/settings/CategorizationSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
console.log('Importing categories...');
9191
9292
// Get file from upload
93-
const file = elem.originalTarget.files[0];
93+
const file = elem.target.files[0];
9494
if (file.type != 'application/json') {
9595
console.error('Only JSON files are possible to import');
9696
return;

0 commit comments

Comments
 (0)