Commit 10de0646 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Slight change in handling the query params before calling hived. Some...

[JES] Slight change in handling the query params before calling hived. Some components would set a new URL that would cause the old processing to not pick the right token
parent 19da0f2f
......@@ -50,7 +50,13 @@ export async function getStateAsync(url) {
if (path.includes('transfers')) {
fetch_transfers = true;
//just convert path to be the username, hivemind won't accept the request if transfers is in the path
path = path.split('/')[1];
let tokens = path.split('/');
for (var token of tokens) {
if (token.contains('@')) {
path = token;
break;
}
}
}
let raw = await api.getStateAsync(path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment