mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-17 16:45:21 +00:00
@@ -32,13 +32,7 @@ define(function() {
|
||||
Config.lang = langFileName;
|
||||
var ok = Api.writeConfig(Config);
|
||||
if(ok) {
|
||||
Api.onClose(function() {
|
||||
// mac下server关闭要点时间
|
||||
var timeout = Api.isMac ? 0 : 200;
|
||||
setTimeout(function() {
|
||||
location.reload();
|
||||
}, timeout);
|
||||
});
|
||||
Api.reloadApp();
|
||||
} else {
|
||||
alert(getMsg('error'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user