js/main: Inhibit remote access when depending on session mode
The session mode determines whether the screen casting should work or not, but until now only dealt with the built in screen cast, not the ones using PipeWire. Add the newly added API for inhibiting remote access when the session mode says screencasts are not allowed.
Edited by Jonas Ådahl