mirror of
https://github.com/orangeglo/gbnp.git
synced 2026-04-24 15:16:51 -05:00
20 lines
329 B
JavaScript
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 = '';
|
|
}
|
|
}
|
|
}); |