Merge pull request #6 from sudofoobar/fix-open-this-page
Fix "Open this page in mpv" feature
This commit is contained in:
@@ -2,7 +2,7 @@ import { getOptions, openInMPV, updateBrowserAction } from "./common.js";
|
|||||||
|
|
||||||
updateBrowserAction();
|
updateBrowserAction();
|
||||||
|
|
||||||
[["page", "url"], ["link", "linkUrl"], ["video", "srcUrl"], ["audio", "srcUrl"]].forEach(([item, linkType]) => {
|
[["page", "pageUrl"], ["link", "linkUrl"], ["video", "srcUrl"], ["audio", "srcUrl"]].forEach(([item, linkType]) => {
|
||||||
chrome.contextMenus.create({
|
chrome.contextMenus.create({
|
||||||
title: `Open this ${item} in mpv`,
|
title: `Open this ${item} in mpv`,
|
||||||
id: `open${item}inmpv`,
|
id: `open${item}inmpv`,
|
||||||
|
Reference in New Issue
Block a user