不允许cmd+r刷新, 原因是 cmd+r有问题, 刷新后, 再按cmd+r就不会执行这个了

This commit is contained in:
life
2015-11-15 19:46:20 +08:00
parent 6daba37aa4
commit 4a1eb9f94f
3 changed files with 10 additions and 5 deletions

View File

@@ -1714,7 +1714,9 @@ var Notify = {
}
};
// 关闭当前窗口
var onClose = function(afterFunc) {
console.log('on close');
try {
// 先把服务/协议关掉
Server.close(function () {
@@ -1727,6 +1729,7 @@ var onClose = function(afterFunc) {
});
});
} catch(e) {
console.error(e);
afterFunc && afterFunc();
}
}