mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
PC Uptime
This commit is contained in:
@@ -161,6 +161,7 @@ Vue.component('marquee-text', MarqueeText);
|
||||
appType: location.href.substr(-1),
|
||||
currentTime: new Date().toJSON(),
|
||||
cpuUsage: 0,
|
||||
pcUptime: '',
|
||||
config: {},
|
||||
photonLobbyBotSize: 0,
|
||||
onlineFriendCount: 0,
|
||||
@@ -364,6 +365,13 @@ Vue.component('marquee-text', MarqueeText);
|
||||
} else {
|
||||
this.devices = '';
|
||||
}
|
||||
if (this.config.pcUptimeOnFeed) {
|
||||
AppApi.GetUptime().then((uptime) => {
|
||||
this.pcUptime = timeToText(uptime);
|
||||
});
|
||||
} else {
|
||||
this.pcUptime = '';
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user