mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 13:56:07 +02:00
refactor untils
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user