Skip to content

Commit acc203b

Browse files
committed
fix compatibility with new Discord update
1 parent 1d95ab3 commit acc203b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

open-in-mpv.plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name open in mpv
33
* @author binarynoise
44
* @description Use the context menu to open a video in mpv.
5-
* @version 2.1.1
5+
* @version 2.2.0
66
* @source https://github.com/binarynoise/open-in-mpv
77
* @donate https://paypal.me/binarynoise
88
*/
@@ -27,10 +27,10 @@ function contextMenuPatch(tree, context) {
2727
const href = context.target.href || context.target.parentNode.href
2828

2929
if (href !== undefined) {
30-
tree.props.children.push(BdApi.ContextMenu.buildItem({
30+
tree.props.children.props.children.push(BdApi.ContextMenu.buildItem({
3131
type: "separator",
3232
}))
33-
tree.props.children.push(BdApi.ContextMenu.buildItem({
33+
tree.props.children.props.children.push(BdApi.ContextMenu.buildItem({
3434
type: "text", label: "open in mpv", action: () => {
3535
console.log("open-in-mpv: link is " + href);
3636

0 commit comments

Comments
 (0)