Skip to content

Commit

Permalink
Merge pull request #5824 from mozilla/revert-5823-hardcode-hmc-ishub
Browse files Browse the repository at this point in the history
Revert "Hardcode HMC as a hub origin"
  • Loading branch information
netpro2k committed Nov 29, 2022
2 parents e9f0798 + f1a1ec7 commit 608f52d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/utils/media-url-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ export const guessContentType = url => {
};

const originIsHubsServer = new Map();
// HACK hubs.mozilla.com is now technically not a "hub" root, but we route existing links as if it is, so treat it as one.
originIsHubsServer.set("http://hubs.mozilla.com", true);
originIsHubsServer.set("https://hubs.mozilla.com", true);
async function isHubsServer(url) {
if (!url) return false;
if (!url.startsWith("http")) {
Expand Down

0 comments on commit 608f52d

Please sign in to comment.