fix
This commit is contained in:
		@@ -160,7 +160,7 @@ setInterval(function () {
 | 
			
		||||
		infowebsocket()
 | 
			
		||||
	}
 | 
			
		||||
}, 10000)
 | 
			
		||||
function toastInterpret(obj) {
 | 
			
		||||
async function toastInterpret(obj) {
 | 
			
		||||
	if (obj.type == 'textv2') {
 | 
			
		||||
		if (~obj.languages.indexOf(lang.language)) {
 | 
			
		||||
			let showVer = true
 | 
			
		||||
 
 | 
			
		||||
@@ -387,7 +387,8 @@ function ckdb(acct_id) {
 | 
			
		||||
	var letters = domain + '_letters'
 | 
			
		||||
	var quoteMarker = domain + '_quote'
 | 
			
		||||
	if (idata) {
 | 
			
		||||
		var json = JSON.parse(idata)
 | 
			
		||||
		//check and replace json to idata
 | 
			
		||||
		var json = idata
 | 
			
		||||
		if (json[quoteMarker] == 'enabled') {
 | 
			
		||||
			localStorage.setItem('quoters', 'true')
 | 
			
		||||
			localStorage.setItem('quote_' + acct_id, 'true')
 | 
			
		||||
 
 | 
			
		||||
@@ -157,7 +157,7 @@ function spotifytips() {
 | 
			
		||||
				setLog(start, 'JSON', error)
 | 
			
		||||
				console.error(error)
 | 
			
		||||
			})
 | 
			
		||||
			.then(function(json) {
 | 
			
		||||
			.then(async function(json) {
 | 
			
		||||
				var ms = json.progress_ms
 | 
			
		||||
				if(!ms) {
 | 
			
		||||
					tips('ver')
 | 
			
		||||
@@ -175,7 +175,7 @@ function spotifytips() {
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				artisttxt = escapeHTML(artisttxt)
 | 
			
		||||
				sleep(last)
 | 
			
		||||
				await sleep(last)
 | 
			
		||||
				var tms = item.duration_ms
 | 
			
		||||
				var per = (ms / item.duration_ms) * 100
 | 
			
		||||
				ms = ms / 1000
 | 
			
		||||
@@ -251,10 +251,10 @@ function trendTagonTipInterval() {
 | 
			
		||||
}
 | 
			
		||||
//時計
 | 
			
		||||
var clockint
 | 
			
		||||
function clock() {
 | 
			
		||||
async function clock() {
 | 
			
		||||
	var now = new Date()
 | 
			
		||||
	var last = 1000 - (now.getTime() % 1000)
 | 
			
		||||
	sleep(last)
 | 
			
		||||
	await sleep(last)
 | 
			
		||||
	clockint = setInterval(clockStart, 1000)
 | 
			
		||||
}
 | 
			
		||||
function clockStart() {
 | 
			
		||||
@@ -286,10 +286,6 @@ function clockStart() {
 | 
			
		||||
		'</span>'
 | 
			
		||||
	$('#tips-text').html(msg)
 | 
			
		||||
}
 | 
			
		||||
function sleep(waitMsec) {
 | 
			
		||||
	var startMsec = new Date()
 | 
			
		||||
	while (new Date() - startMsec < waitMsec);
 | 
			
		||||
}
 | 
			
		||||
function tipsToggle() {
 | 
			
		||||
	$('#tips').toggleClass('hide')
 | 
			
		||||
	$('#tips-menu').toggleClass('hide')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user