diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-07-04 23:02:33 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-07-04 23:03:46 +1200 |
commit | 99f2686e661b87c0625053d929af211bfcc95fdc (patch) | |
tree | 19225bb0bd5a4eef87c1101b1d19ab184583d317 | |
parent | 4a8b247ac90aab7c870ea0d814d322a86b957dad (diff) | |
download | bedrock-js-99f2686e661b87c0625053d929af211bfcc95fdc.zip |
Add wake methods to stream and clipboard device
This prevents an error from being raised when a program marks these
devices as being allowed to wake the system from sleep.
-rw-r--r-- | bedrock.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2143,6 +2143,9 @@ function StreamDevice(br) { default: return; } } + this.wake = function() { + return false; + } } @@ -2171,6 +2174,9 @@ function ClipboardDevice(br) { default: return; } } + this.wake = function() { + return false; + } this.readEntry = function(v) { this.readQueue = []; |