diff --git a/src/index.ts b/src/index.ts index 8558669..9e2a981 100644 --- a/src/index.ts +++ b/src/index.ts @@ -28,7 +28,7 @@ function createWindow() { // 取消windows菜单 win.setMenu(null); - win.loadURL('https://www.wolai.com/'); + win.loadURL('https://www.wolai.com/login'); win.once('ready-to-show', () => { win.show(); diff --git a/src/inject.ts b/src/inject.ts index 4863baa..0e2b8ca 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -52,6 +52,11 @@ function enhance() { $sidebar.css({ '-webkit-app-region': 'drag' }); $sidebar.children().css({ '-webkit-app-region': 'no-drag' }); } + + const $headerbar = $('#wolai-header-bar'); + if ($headerbar.length === 1) { + $headerbar.css({ '-webkit-app-region': 'no-drag' }); + } })(); }