mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-27 01:22:41 +08:00
update files
This commit is contained in:
parent
b1afc52139
commit
d9522119f6
@ -67,7 +67,7 @@ function openXTerm(vm){
|
||||
if (vm.project.name === event.data.name) {
|
||||
if (event.data.exec === 'beep') {
|
||||
snd.play();
|
||||
} else if (event.data.screen) {
|
||||
} else if (event.data.screen && !document.hidden) {
|
||||
vm.$els.terminal.innerHTML = event.data.screen;
|
||||
}
|
||||
|
||||
@ -223,6 +223,14 @@ module.exports = Vue.component('app-main', {
|
||||
});
|
||||
},
|
||||
ready: function (){
|
||||
var context = this;
|
||||
|
||||
openXTerm(this);
|
||||
|
||||
document.addEventListener('visibilitychange', function (){
|
||||
if (!document.hidden) {
|
||||
openXTerm(context);
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user