mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 07:31:33 +00:00
不允许cmd+r刷新, 原因是 cmd+r有问题, 刷新后, 再按cmd+r就不会执行这个了
This commit is contained in:
5
node_modules/server.js
generated
vendored
5
node_modules/server.js
generated
vendored
@@ -135,7 +135,8 @@ var Server = {
|
||||
|
||||
// 注销prototol, 如果频繁刷新, 会报错, calling a released render
|
||||
if (Evt.canUseProtocol()) {
|
||||
protocol.unregisterProtocol('leanote', function () {
|
||||
protocol.unregisterProtocol('leanote', function (ok) {
|
||||
console.log('unregisterProtocol: ' + ok)
|
||||
callback && callback();
|
||||
});
|
||||
return;
|
||||
@@ -229,7 +230,7 @@ var Server = {
|
||||
}, function (error) {
|
||||
if (error) {
|
||||
console.error('Failed to register protocol')
|
||||
console.log(error);
|
||||
console.error(error);
|
||||
}
|
||||
});
|
||||
// });
|
||||
|
Reference in New Issue
Block a user