From 60159e69d8dcdbb445be551c0f5a9a2f9f6faa6a Mon Sep 17 00:00:00 2001 From: lake2 Date: Wed, 4 Nov 2020 21:33:49 +0800 Subject: [PATCH] update --- src/index.ts | 2 +- src/inject.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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' }); + } })(); }