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(
|
const proto = window.textsecure.protobuf.ProvisioningUuid.decode(
|
||||||
request.body
|
request.body
|
||||||
);
|
);
|
||||||
setProvisioningUrl(
|
const url = [
|
||||||
[
|
'tsdevice:/?uuid=',
|
||||||
'tsdevice:/?uuid=',
|
proto.uuid,
|
||||||
proto.uuid,
|
'&pub_key=',
|
||||||
'&pub_key=',
|
encodeURIComponent(btoa(utils.getString(pubKey))),
|
||||||
encodeURIComponent(btoa(utils.getString(pubKey))),
|
].join('');
|
||||||
].join('')
|
|
||||||
);
|
// eslint-disable-next-line no-console
|
||||||
|
console._log(`provisioning url ${url}`);
|
||||||
|
|
||||||
|
setProvisioningUrl(url);
|
||||||
request.respond(200, 'OK');
|
request.respond(200, 'OK');
|
||||||
} else if (
|
} else if (
|
||||||
request.path === '/v1/message' &&
|
request.path === '/v1/message' &&
|
||||||
|
|
|
@ -448,7 +448,9 @@ async function _promiseAjax(
|
||||||
} else if (
|
} else if (
|
||||||
(options.responseType === 'json' ||
|
(options.responseType === 'json' ||
|
||||||
options.responseType === 'jsonwithdetails') &&
|
options.responseType === 'jsonwithdetails') &&
|
||||||
response.headers.get('Content-Type') === 'application/json'
|
/^application\/json(;.*)?$/.test(
|
||||||
|
response.headers.get('Content-Type') || ''
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
resultPromise = response.json();
|
resultPromise = response.json();
|
||||||
} else if (
|
} else if (
|
||||||
|
|
|
@ -15170,7 +15170,7 @@
|
||||||
"rule": "jQuery-wrap(",
|
"rule": "jQuery-wrap(",
|
||||||
"path": "ts/textsecure/WebAPI.ts",
|
"path": "ts/textsecure/WebAPI.ts",
|
||||||
"line": " const byteBuffer = window.dcodeIO.ByteBuffer.wrap(",
|
"line": " const byteBuffer = window.dcodeIO.ByteBuffer.wrap(",
|
||||||
"lineNumber": 2230,
|
"lineNumber": 2232,
|
||||||
"reasonCategory": "falseMatch",
|
"reasonCategory": "falseMatch",
|
||||||
"updated": "2020-09-08T23:07:22.682Z"
|
"updated": "2020-09-08T23:07:22.682Z"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue