Fix empty displayName in gameLog + Fix progress pie filter

This commit is contained in:
Natsumi
2021-10-29 17:01:01 +13:00
parent 208a71a045
commit 83dbf0d50f
4 changed files with 30 additions and 23 deletions

View File

@@ -193,7 +193,8 @@ import configRepository from './repository/config.js';
location: '',
name: '',
playerList: [],
friendList: []
friendList: [],
progressPie: false
},
lastLocationTimer: '',
wristFeed: [],
@@ -298,7 +299,10 @@ import configRepository from './repository/config.js';
this.nowPlaying = JSON.parse(json);
if (this.appType === '2') {
var circle = document.querySelector('.np-progress-circle-stroke');
if (this.config.progressPie && this.nowPlaying.percentage !== 0) {
if (
this.lastLocation.progressPie &&
this.nowPlaying.percentage !== 0
) {
circle.style.opacity = 0.5;
var circumference = circle.getTotalLength();
circle.style.strokeDashoffset =