Skip to content

Commit

Permalink
Fix broken Firefox extension (#3681)
Browse files Browse the repository at this point in the history
* Update manifest.json to match Mozilla re-signed version

* Don't use getURL to create absolute URL

* Update Firefox extension version to 1.0.2
  • Loading branch information
cmsetzer authored Jan 7, 2025
1 parent 189497f commit aea54ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 3 additions & 5 deletions extras/perma-firefox/src/bg.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
chrome.browserAction.onClicked.addListener(function(tab){
chrome.tabs.create({
"url": chrome.extension.getURL('https://perma.cc/service/bookmarklet-create/?v=1&url=' + encodeURIComponent(tab.url))
browser.browserAction.onClicked.addListener(function(tab){
browser.tabs.create({
"url": "https://perma.cc/service/bookmarklet-create/?v=1&url=" + encodeURIComponent(tab.url)
});
});


10 changes: 3 additions & 7 deletions extras/perma-firefox/src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"manifest_version": 2,

"name": "Perma.cc",
"description": "Enter any URL to preserve it forever.",
"version": "1.0.0",
"version": "1.0.2",
"applications": {
"gecko": {
"id": "[email protected]"
}
}
},
"permissions": [
"activeTab"
],

"permissions": ["activeTab"],
"icons": {
"16": "infinity16.png",
"48": "infinity48.png",
Expand Down

0 comments on commit aea54ec

Please sign in to comment.