1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Added support for mesage-box to display on lock/login screen on Windows

This commit is contained in:
Bryan Roe
2020-07-01 17:11:19 -07:00
parent ba8e43b47c
commit ef58abb73c
4 changed files with 28 additions and 8 deletions

View File

@@ -65,7 +65,12 @@ function UserSessions()
require('events').EventEmitter.call(this, true)
.createEvent('changed')
.createEvent('locked')
.createEvent('unlocked');
.createEvent('unlocked')
.addMethod('locked', function () { return (this._locked); })
.addMethod('unlocked', function () { return (!this._locked); });
this._locked = false;
this.on('locked', function () { this._locked = true; });
this.on('unlocked', function () { this._locked = false; });
if (process.platform == 'win32')
{