Skip to content

Commit

Permalink
[macOS] Fix issues found by codacy bot
Browse files Browse the repository at this point in the history
  • Loading branch information
edipox committed Feb 23, 2017
1 parent 01537e3 commit ef47b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/scripts/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ class SideBar extends EventEmitter {
addPlatformStyleForShow () {
if (process.platform === 'darwin') {
[].forEach.call(document.getElementsByTagName('webview'),
(webviewObj) => { if (webviewObj.insertCSS){ webviewObj.insertCSS('aside.side-nav{margin-top:0; overflow:hidden; transition: margin .5s ease-in-out; }'); }});
(webviewObj) => { if (webviewObj.insertCSS) { webviewObj.insertCSS('aside.side-nav{margin-top:0; overflow:hidden; transition: margin .5s ease-in-out; }'); } });
}
}

addPlatformStyleForHide () {
if (process.platform === 'darwin') {
[].forEach.call(document.getElementsByTagName('webview'),
(webviewObj) => { if (webviewObj.insertCSS){ webviewObj.insertCSS('aside.side-nav{margin-top:15px;overflow:hidden; transition: margin .5s ease-in-out; }'); }});
(webviewObj) => { if (webviewObj.insertCSS) { webviewObj.insertCSS('aside.side-nav{margin-top:15px;overflow:hidden; transition: margin .5s ease-in-out; }'); } });
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/stylesheets/start-page.less
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ webview.active {
-webkit-app-region: drag;
}

body, html {
body,
html {
-webkit-app-region: drag;
}

0 comments on commit ef47b11

Please sign in to comment.