webContextMenus: add Show My Camera item (#2086)

This commit is contained in:
sunnie 2024-01-05 23:12:13 +02:00 committed by GitHub
parent 9e810e5511
commit 88fc15752d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,6 +169,15 @@ export default definePlugin({
match: /let\{text:\i=""/,
replace: "return [null,null];$&"
}
},
// Add back "Show My Camera" context menu
{
find: '.default("MediaEngineWebRTC");',
replacement: {
match: /supports\(\i\)\{switch\(\i\)\{case (\i).Features/,
replace: "$&.DISABLE_VIDEO:return true;case $1.Features"
}
}
],