Skip to content

Commit

Permalink
fix: use javascript in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Jul 19, 2018
1 parent 298d784 commit ffb20f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/js/mpd.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict";
/* myMPD
(c) 2018 Juergen Mang <[email protected]>
This project's homepage is: https://github.com/jcorporation/mympd
Expand Down Expand Up @@ -136,6 +137,7 @@ function appGoto(a,t,v,s) {

function appRoute() {
var hash = decodeURI(location.hash);
var params;
if (params = hash.match(/^\#\/(\w+)\/?(\w+)?\/?(\w+)?\!((\d+)\/([^\/]+)\/(.*))$/)) {
app.current.app = params[1];
app.current.tab = params[2];
Expand Down Expand Up @@ -1532,7 +1534,7 @@ function doSetFilterLetter(x) {
function addFilterLetter(x) {
var filter = '<button class="mr-1 mb-1 btn btn-sm btn-secondary material-icons material-icons-small">delete</button>' +
'<button class="mr-1 mb-1 btn btn-sm btn-secondary">#</button>';
for (i = 65; i <= 90; i++) {
for (var i = 65; i <= 90; i++) {
filter += '<button class="mr-1 mb-1 btn-sm btn btn-secondary">' + String.fromCharCode(i) + '</button>';
}
var letters = document.getElementById(x);
Expand Down

0 comments on commit ffb20f1

Please sign in to comment.