Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Hide body when display is "off"
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Jul 11, 2019
1 parent 40eeda5 commit f634ca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tablet/tablet.js
Expand Up @@ -13,6 +13,7 @@ const createWindow = () => {
};

const setDisplay = value => {
mainWindow.webContents.executeJavaScript(`document.body.style.visibility = "${value === 0 ? "hidden" : "visible"}";`);
brightness.set(value);
};

Expand Down

0 comments on commit f634ca2

Please sign in to comment.