Skip to content

Commit

Permalink
Ignore filesystem paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneTR committed Aug 4, 2023
1 parent 755333a commit 736571d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/js/helpers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ class GMTMenu extends HTMLElement {
customElements.define('gmt-menu', GMTMenu);

const replaceRepoIcon = (uri) => {

if(!uri.startsWith('http')) return uri; // ignore filesystem paths

const url = new URL(uri);
let iconClass = "";

let iconClass = "";
switch (url.host) {
case "github.com":
case "www.github.com":
Expand Down

0 comments on commit 736571d

Please sign in to comment.