mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Fix online/offline timer
This commit is contained in:
+2
-3
@@ -4073,18 +4073,17 @@ import gameLogService from './service/gamelog.js'
|
|||||||
if ((ctx.ref.$offline_for == '') &&
|
if ((ctx.ref.$offline_for == '') &&
|
||||||
((ctx.state == 'offline') && ctx.ref.state == '') ||
|
((ctx.state == 'offline') && ctx.ref.state == '') ||
|
||||||
(((ctx.state == 'offline') || (ctx.state == 'active')) &&
|
(((ctx.state == 'offline') || (ctx.state == 'active')) &&
|
||||||
((ctx.ref.state != 'offline') && (ctx.ref.state != 'active') && (ctx.ref.state != '')))) {
|
((ctx.ref.state == 'online')))) {
|
||||||
ctx.ref.$online_for = '';
|
ctx.ref.$online_for = '';
|
||||||
ctx.ref.$offline_for = Date.now();
|
ctx.ref.$offline_for = Date.now();
|
||||||
}
|
}
|
||||||
if ((ctx.ref.$online_for == '') && (ctx.state == 'online')) {
|
if (ctx.state == 'online') {
|
||||||
ctx.ref.$location_at = Date.now();
|
ctx.ref.$location_at = Date.now();
|
||||||
ctx.ref.$online_for = Date.now();
|
ctx.ref.$online_for = Date.now();
|
||||||
ctx.ref.$offline_for = '';
|
ctx.ref.$offline_for = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// ascending
|
// ascending
|
||||||
|
|||||||
Reference in New Issue
Block a user