From 99f2686e661b87c0625053d929af211bfcc95fdc Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Fri, 4 Jul 2025 23:02:33 +1200 Subject: 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. --- bedrock.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bedrock.js b/bedrock.js index 4f1bd12..bdb4062 100644 --- a/bedrock.js +++ b/bedrock.js @@ -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 = []; -- cgit v1.2.3-70-g09d2