Skip to content

Commit

Permalink
new id/key
Browse files Browse the repository at this point in the history
  • Loading branch information
eastmarch committed Apr 21, 2020
1 parent 6bed263 commit 5eb73e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

chrome.runtime.onInstalled.addListener(function() {
chrome.contextMenus.create({
id: "play-in-mpv",
id: "chr2mpv",
title: "Play link in MPV",
contexts: ["link"],
});
});

chrome.contextMenus.onClicked.addListener(function(info, tab) {
if (info.menuItemId == "play-in-mpv") playInMPV(info.linkUrl);
if (info.menuItemId == "chr2mpv") playInMPV(info.linkUrl);
});

chrome.browserAction.onClicked.addListener(function(tab) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0",
"manifest_version": 2,
"description": "Tries to play the current URL on MPV. Right-click on links or press the toolbar button to activate.",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7KzhDu23iF29ixXsTXg3yin52AIiQ70VtigLNq/Z/eQtmopiYwhzvtqZtE2E75Eu7dY1+SefOpVyvUoPLrzKoy/XgaUG1UTS7qmdsjIKt5dWcVqg3JjiZ8ErNLhIRoUGWo3Ihi6xqigJDYy3nTgAhRSFRA31kLBrhCo00Vlm1LbK26H/WvSInr57N2dNmY1z2Em7IeMn109JSrfFKbrYPItuo2qh5/7R350h9x/Ijr4q0KUIIbEao4RS2Fp+aS4fnd9Vpu+B6bkOqXlNB7km3Zht6EZqOhHOCNve9sGa+i64TCiERFlgOQIiTCQNs5aChcgxhnwzC91GI1D5jU3n7wIDAQAB",
"permissions": ["activeTab", "contextMenus"],
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsYoruVvDtMLapAPBtmm18ngGLH/+pqqaTV8Olaxbr4xOYM44/TqjEt3W3DwZuSGaKvpXOFsxgreM3J99xeKEEdRDWa1/2VjVc+K09V6dcHwJizEh/Fq4jNA7/is/7fr8baNYbHjRPak/NhLbljOx2hvCoN10lEt0HffgklPUC6uDcLEWQFbgVRTVY2bWmf73uBY3YjEZXH4O6jdbEuLXoeyO/poYC61YUqfQ46ncEkNkv1/JlDqtEuEzsubhYmIUjD5Phrw1UDuNF1KLhWjL1ciettxzqbgAgI3d2exAl3ug6dOYt0+5p8DbAuKiIqKD9/v/R+h9wlP1nzbs5LrSdwIDAQAB",
"icons": {
"128": "img/icon_128.png",
"64": "img/icon_64.png",
Expand Down

0 comments on commit 5eb73e1

Please sign in to comment.