code formatting

This commit is contained in:
pypy
2020-10-25 16:11:17 +09:00
parent bf8c8b7461
commit d44f97de9d
2 changed files with 9 additions and 9 deletions

View File

@@ -3432,8 +3432,8 @@ CefSharp.BindObjectAsync(
var ctx = data[--i]; var ctx = data[--i];
// GPS, Online, Offline, Status, Avatar // GPS, Online, Offline, Status, Avatar
if ((ctx.type !== 'Avatar') && if ((ctx.type !== 'Avatar') &&
!((ctx.type === 'GPS') && (ctx.location[0] === 'private') && (this.hidePrivateFromFeed === true)) && !((ctx.type === 'GPS') && (ctx.location[0] === 'private') && (this.hidePrivateFromFeed === true)) &&
!(((ctx.type === 'Online') || (ctx.type === 'Offline')) && (this.hideLoginsFromFeed === true))) { !(((ctx.type === 'Online') || (ctx.type === 'Offline')) && (this.hideLoginsFromFeed === true))) {
arr.push({ arr.push({
...ctx, ...ctx,
isFriend: this.friends.has(ctx.userId), isFriend: this.friends.has(ctx.userId),

View File

@@ -665,15 +665,15 @@ CefSharp.BindObjectAsync(
this.cpuUsage = cpuUsage.toFixed(2); this.cpuUsage = cpuUsage.toFixed(2);
}); });
if (VRCXStorage.GetBool('VRCX_hideDevicesFromFeed') === false) { if (VRCXStorage.GetBool('VRCX_hideDevicesFromFeed') === false) {
VRCX.GetVRDevices().then((devices) => { VRCX.GetVRDevices().then((devices) => {
devices.forEach((device) => { devices.forEach((device) => {
device[2] = parseInt(device[2], 10); device[2] = parseInt(device[2], 10);
}); });
this.devices = devices; this.devices = devices;
}); });
} }
else { else {
this.devices = ""; this.devices = '';
} }
this.updateSharedFeed(); this.updateSharedFeed();
}; };