gbnp/script/app.js
2020-03-28 17:59:33 -04:00

20 lines
329 B
JavaScript

let app = new Vue({
el: '#app',
data: {
roms: [],
processor: new Processor([])
},
methods: {
addFile: async function(e) {
this.roms.push(
new ROM(
await e.target.files[0].arrayBuffer()
)
);
this.processor.roms = this.roms;
e.target.value = '';
}
}
});