不允许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

5
node_modules/server.js generated vendored
View File

@@ -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);
}
});
// });