Skip to content

Commit

Permalink
Don't show the dragbar if we're not frameless!
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jun 8, 2020
1 parent 6414050 commit 0afeffb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kanmail/client/components/DragBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export default class DragBar extends React.Component {
// }

render() {
if (!window.KANMAIL_FRAMELESS) {
return null;
}

return <div id="drag-bar" ref={makeDragElement}></div>;
}
}

0 comments on commit 0afeffb

Please sign in to comment.