mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-17 16:45:21 +00:00
不允许cmd+r刷新, 原因是 cmd+r有问题, 刷新后, 再按cmd+r就不会执行这个了
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user