webContextMenus: add Show My Camera item (#2086)
This commit is contained in:
parent
9e810e5511
commit
88fc15752d
1 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in a new issue