diff --git a/src/Editor.vue b/src/Editor.vue index a07921d..2dd98d7 100644 --- a/src/Editor.vue +++ b/src/Editor.vue @@ -22,8 +22,9 @@
+
@@ -96,7 +97,7 @@ methods: { // deck JSON uploader jsonUpload(event) { - let files = event.target.files; + let files = this.$refs.jsonUpload.files; let reader = new FileReader(); reader.onload = e => this.deckInfo = yaml.safeLoad(e.target.result); reader.readAsText(files[0]);