diff --git a/public/index.html b/public/index.html
index 0130219..f1cffb4 100644
--- a/public/index.html
+++ b/public/index.html
@@ -90,12 +90,12 @@
Search
-
+
- LastFM
+ Last.fm
diff --git a/public/index.js b/public/index.js
index f4c0e0d..021eb4b 100644
--- a/public/index.js
+++ b/public/index.js
@@ -497,7 +497,8 @@
clear.style.display = 'none'
}
- if (page > pages) page = pages
+ if (page > pages) page = pageNum = pages
+ if (page < pages) page = pageNum = 1
updatePaging()
if (playlist === -1) {
@@ -796,7 +797,7 @@
httpGet('/user/info').then(function (data) {
user = data
loggedin.innerHTML = 'Logged in as ' + data.username
- // LastFM
+ // Last.fm
httpGet('/api/lastfm').then(function (data) {
user.lastfm = data
updateLastFMOptions()