mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-13 11:53:51 +02:00
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
import { instanceRequest } from '../api';
|
|
import { parseLocation } from '../shared/utils/locationParser';
|
|
|
|
/**
|
|
*
|
|
* @param {object} instance
|
|
*/
|
|
function refreshInstancePlayerCount(instance) {
|
|
const L = parseLocation(instance);
|
|
if (L.isRealInstance) {
|
|
instanceRequest.getInstance({
|
|
worldId: L.worldId,
|
|
instanceId: L.instanceId
|
|
});
|
|
}
|
|
}
|
|
|
|
export { refreshInstancePlayerCount };
|