tips versioning and Spotify player bug

This commit is contained in:
cutls 2020-04-08 15:28:04 +09:00
parent fedb1ee858
commit f79da2b692

View File

@ -159,6 +159,10 @@ function spotifytips() {
}) })
.then(function(json) { .then(function(json) {
var ms = json.progress_ms var ms = json.progress_ms
if(!ms) {
tips('ver')
return false
}
var last = 1000 - (ms % 1000) var last = 1000 - (ms % 1000)
var item = json.item var item = json.item
var img = item.album.images[0].url var img = item.album.images[0].url
@ -218,6 +222,8 @@ function spotifytips() {
type: 'info', type: 'info',
title: lang.lang_spotify_acct title: lang.lang_spotify_acct
}) })
tips('ver')
return false
} }
} }
function spotStart() { function spotStart() {
@ -288,6 +294,4 @@ function tipsToggle() {
$('#tips').toggleClass('hide') $('#tips').toggleClass('hide')
$('#tips-menu').toggleClass('hide') $('#tips-menu').toggleClass('hide')
} }
if (localStorage.getItem('tips')) {
tips(localStorage.getItem('tips'))
}