File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments