Skip to content

Commit

Permalink
Work around Mozilla's server misconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpie committed Jul 20, 2021
1 parent 8210107 commit 55cd845
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Add a custom search engine to the list of available search engines in the search bar.",
"manifest_version": 2,
"name": "Add custom search engine",
"version": "4.1",
"version": "4.2",

"browser_action": {
"default_icon": {
Expand Down
3 changes: 2 additions & 1 deletion search.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ document.querySelector("form").addEventListener("submit", async event => {

let json = await response.json();
// We need the raw XML instead of the pretty HTML view
let url = json.url + "/raw";
// Mozilla's dpaste instance is misconfigured, we have to fix the URL.
let url = json.url.replace("dpaste-base-url.example.org", "paste.mozilla.org") + "/raw";

let link = document.createElement("link");
link.rel = "search";
Expand Down

0 comments on commit 55cd845

Please sign in to comment.