update files

This commit is contained in:
nuintun
2015-12-02 15:32:48 +08:00
parent 2417733cc0
commit 7cc2f49c74
2 changed files with 9 additions and 28 deletions

View File

@@ -161,11 +161,18 @@ module.exports = Vue.component('app-main', {
context.expandCommand = trigger && trigger.contains(target);
}, false);
window.TERMSTR = '';
ipc.on('emulator', function (event, type, project, data){
worker.postMessage({ action: 'write', name: project.name, data: data + '' });
window.TERMSTR += JSON.stringify(data.toString()) + '\n';
// event.sender.send('emulator', project, 'stop');
});
window.doWrite = function (){
require('fs').writeFile('./screen.text', window.TERMSTR);
};
},
ready: function (){
var context = this;