Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonnold authored Oct 26, 2023
1 parent 6016f29 commit 6f070c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function updateTitle(val) {
function getLogoUrl(engine) {
const words = engine.toLowerCase().split(/[^a-z0-9]+/);
const versionIdx = words.findIndex((v, i) => i > 0 && /\d/.test(v));
return `url('img/logos/${words.slice(0, versionIdx < 0 ? words.length : versionIdx).join('_')}.webp')`;
return `url('/img/logos/${words.slice(0, versionIdx < 0 ? words.length : versionIdx).join('_')}.webp')`;
}

function updateLogos(white, black) {
Expand Down

0 comments on commit 6f070c1

Please sign in to comment.