Preliminary support for better performance testing
This commit is contained in:
parent
fd8339e2ff
commit
f98c3cba8c
3 changed files with 15 additions and 10 deletions
|
@ -211,14 +211,17 @@ export default class AccountManager extends EventTarget {
|
|||
const proto = window.textsecure.protobuf.ProvisioningUuid.decode(
|
||||
request.body
|
||||
);
|
||||
setProvisioningUrl(
|
||||
[
|
||||
'tsdevice:/?uuid=',
|
||||
proto.uuid,
|
||||
'&pub_key=',
|
||||
encodeURIComponent(btoa(utils.getString(pubKey))),
|
||||
].join('')
|
||||
);
|
||||
const url = [
|
||||
'tsdevice:/?uuid=',
|
||||
proto.uuid,
|
||||
'&pub_key=',
|
||||
encodeURIComponent(btoa(utils.getString(pubKey))),
|
||||
].join('');
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console._log(`provisioning url ${url}`);
|
||||
|
||||
setProvisioningUrl(url);
|
||||
request.respond(200, 'OK');
|
||||
} else if (
|
||||
request.path === '/v1/message' &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue