diff --git a/static/js/components/app-main/index.js b/static/js/components/app-main/index.js index 8767d91..d713b40 100644 --- a/static/js/components/app-main/index.js +++ b/static/js/components/app-main/index.js @@ -200,5 +200,7 @@ module.exports = Vue.component('app-main', { }, ready: function (){ createXTerm(this.project.name, this.$els.terminal); + + new Worker('static/js/components/app-main/worker.js'); } }); diff --git a/static/js/components/app-main/worker.js b/static/js/components/app-main/worker.js new file mode 100644 index 0000000..65df509 --- /dev/null +++ b/static/js/components/app-main/worker.js @@ -0,0 +1,5 @@ +/** + * Created by nuintun on 2015/11/27. + */ + +var Terminal = require('../../terminal');