Merge pull request #768 from 0rzech/screen-reset-option

Screen reset option
This commit is contained in:
Simo Kinnunen
2018-03-23 22:55:17 +09:00
committed by GitHub
5 changed files with 26 additions and 2 deletions

View File

@@ -104,8 +104,10 @@ module.exports = syrup.serial()
})
plugin.on('leave', function() {
service.pressKey('home')
service.thawRotation()
if (options.screenReset) {
service.pressKey('home')
service.thawRotation()
}
service.releaseWakeLock()
})