Skip to content

Commit

Permalink
Remove const keyword for var that has potential to change
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Feb 19, 2021
1 parent 90b4153 commit 00ca15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ $(document).ready(function() {

if (pngFavicon && svgFavicon) {
const ext = ".svg";
const tagIndex = svgFavicon.href.indexOf("-");
var tagIndex = svgFavicon.href.indexOf("-");
const extIndex = svgFavicon.href.indexOf(ext);
if (tagIndex > extIndex) tagIndex = -1;
const baseText = svgFavicon.href.substring(0, tagIndex !== -1 ? tagIndex : extIndex);
Expand Down

0 comments on commit 00ca15a

Please sign in to comment.