Merge pull request #6 from sudofoobar/fix-open-this-page

Fix "Open this page in mpv" feature
This commit is contained in:
Leonardo
2022-01-28 17:59:07 +00:00
committed by GitHub

View File

@@ -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`,