diff --git a/js/ui/main.js b/js/ui/main.js index ab97c6cc3..19735ccc0 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -126,7 +126,7 @@ function _sessionUpdated() { } let remoteAccessController = global.backend.get_remote_access_controller(); - if (remoteAccessController) { + if (remoteAccessController && !global.backend.is_headless()) { if (sessionMode.allowScreencast && _remoteAccessInhibited) { remoteAccessController.uninhibit_remote_access(); _remoteAccessInhibited = false;