mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 16:04:56 +00:00
fix for windows & linux
This commit is contained in:
@@ -1370,7 +1370,11 @@ var ContextTips = {
|
||||
|
||||
function switchAccount() {
|
||||
SyncService.stop();
|
||||
location.href = 'login.html';
|
||||
// location.href = 'login.html';
|
||||
var w = gui.Window.open('login.html', {frame: false, toolbar: false, resizable: false, transparent: true, width: 258, max_width: 258});
|
||||
// w.focus();
|
||||
// gui.Window.close();
|
||||
win.close();
|
||||
}
|
||||
|
||||
function commonCmd(e) {
|
||||
@@ -1398,6 +1402,31 @@ function loadToolIcons() {
|
||||
}
|
||||
}
|
||||
|
||||
function isMac() {
|
||||
return process.platform == 'darwin';
|
||||
}
|
||||
|
||||
function getMainWinParams() {
|
||||
if(isMac()) {
|
||||
return {
|
||||
frame: false,
|
||||
transparent: true,
|
||||
width: 258,
|
||||
height: 326,
|
||||
toolbar: false,
|
||||
"chromium-args": "--enable-smooth-scrolling"
|
||||
};
|
||||
}
|
||||
return {
|
||||
frame: true,
|
||||
transparent: false,
|
||||
width: 1100,
|
||||
height: 600,
|
||||
toolbar: false,
|
||||
"chromium-args": "--enable-smooth-scrolling"
|
||||
};
|
||||
}
|
||||
|
||||
// loadToolIcons();
|
||||
|
||||
ContextTips.init();
|
Reference in New Issue
Block a user