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:
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user