Update app.js

pull/1108/head
xxDUxx 2021-12-16 11:20:37 +01:00 committed by GitHub
parent 0e2e03b488
commit cb32ad6121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -293,9 +293,9 @@ Bangle.on('swipe', dir => {
else next();
});
// close launcher when lcd is off
Bangle.on('lcdPower', on => {
if(!on) return load();
// close launcher when screen is locked
Bangle.on('lock', on => {
if(on) return load();
});
if (process.env.HWVERSION == 1) {