mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix(skins): preserve screen capture user activation
This commit is contained in:
1 parent
fd4b0c6da2
commit
da0472383d
4 files changed
+49
-5
No files matched your search
@@ -48,6 +48,12 @@ export function createSkinRuntimePluginSession(options: SkinRuntimePluginSession
|
||||
}
|
||||
const action = parseSkinExtensionUiActionRequest(nextOutput, options.plugin.permissions);
|
||||
if (action) {
|
||||
if (action.type === "voice.startScreenShare") {
|
||||
throw new SkinRuntimePluginSessionError(
|
||||
"SKIN_RUNTIME_PLUGIN_USER_ACTIVATION_REQUIRED",
|
||||
"Starting screen capture must use the trusted host control so the browser receives the user's activation.",
|
||||
);
|
||||
}
|
||||
if (!input.event) {
|
||||
throw new SkinRuntimePluginSessionError("SKIN_RUNTIME_PLUGIN_ACTION_WITHOUT_EVENT", "A host action can only follow a trusted UI event.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user