mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
lint
This commit is contained in:
+13
-3
@@ -15596,19 +15596,29 @@ speechSynthesis.getVoices();
|
|||||||
|
|
||||||
$app.methods.clearVRCXCache = function () {
|
$app.methods.clearVRCXCache = function () {
|
||||||
API.cachedUsers.forEach((value, key) => {
|
API.cachedUsers.forEach((value, key) => {
|
||||||
if (!this.friends.has(key) && !this.lastLocation.playerList.has(value.displayName) && key !== API.currentUser.id) {
|
if (
|
||||||
|
!this.friends.has(key) &&
|
||||||
|
!this.lastLocation.playerList.has(value.displayName) &&
|
||||||
|
key !== API.currentUser.id
|
||||||
|
) {
|
||||||
API.cachedUsers.delete(key);
|
API.cachedUsers.delete(key);
|
||||||
console.log(key);
|
console.log(key);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
API.cachedWorlds.forEach((value, key) => {
|
API.cachedWorlds.forEach((value, key) => {
|
||||||
if (!API.cachedFavoritesByObjectId.has(key) && value.authorId !== API.currentUser.id) {
|
if (
|
||||||
|
!API.cachedFavoritesByObjectId.has(key) &&
|
||||||
|
value.authorId !== API.currentUser.id
|
||||||
|
) {
|
||||||
API.cachedWorlds.delete(key);
|
API.cachedWorlds.delete(key);
|
||||||
console.log(key);
|
console.log(key);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
API.cachedAvatars.forEach((value, key) => {
|
API.cachedAvatars.forEach((value, key) => {
|
||||||
if (!API.cachedFavoritesByObjectId.has(key) && value.authorId !== API.currentUser.id) {
|
if (
|
||||||
|
!API.cachedFavoritesByObjectId.has(key) &&
|
||||||
|
value.authorId !== API.currentUser.id
|
||||||
|
) {
|
||||||
API.cachedAvatars.delete(key);
|
API.cachedAvatars.delete(key);
|
||||||
console.log(key);
|
console.log(key);
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-2
@@ -292,11 +292,13 @@ import configRepository from './repository/config.js';
|
|||||||
$app.methods.nowPlayingUpdate = function (json) {
|
$app.methods.nowPlayingUpdate = function (json) {
|
||||||
this.nowPlaying = JSON.parse(json);
|
this.nowPlaying = JSON.parse(json);
|
||||||
if (this.appType === '2') {
|
if (this.appType === '2') {
|
||||||
var circle = document.querySelector(".np-progress-circle-stroke");
|
var circle = document.querySelector('.np-progress-circle-stroke');
|
||||||
if (this.config.progressPie && this.nowPlaying.percentage !== 0) {
|
if (this.config.progressPie && this.nowPlaying.percentage !== 0) {
|
||||||
circle.style.opacity = 0.5;
|
circle.style.opacity = 0.5;
|
||||||
var circumference = circle.getTotalLength();
|
var circumference = circle.getTotalLength();
|
||||||
circle.style.strokeDashoffset = circumference - (this.nowPlaying.percentage / 100) * circumference;
|
circle.style.strokeDashoffset =
|
||||||
|
circumference -
|
||||||
|
(this.nowPlaying.percentage / 100) * circumference;
|
||||||
} else {
|
} else {
|
||||||
circle.style.opacity = 0;
|
circle.style.opacity = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user