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' &&
|
||||
|
|
|
@ -448,7 +448,9 @@ async function _promiseAjax(
|
|||
} else if (
|
||||
(options.responseType === 'json' ||
|
||||
options.responseType === 'jsonwithdetails') &&
|
||||
response.headers.get('Content-Type') === 'application/json'
|
||||
/^application\/json(;.*)?$/.test(
|
||||
response.headers.get('Content-Type') || ''
|
||||
)
|
||||
) {
|
||||
resultPromise = response.json();
|
||||
} else if (
|
||||
|
|
|
@ -15170,7 +15170,7 @@
|
|||
"rule": "jQuery-wrap(",
|
||||
"path": "ts/textsecure/WebAPI.ts",
|
||||
"line": " const byteBuffer = window.dcodeIO.ByteBuffer.wrap(",
|
||||
"lineNumber": 2230,
|
||||
"lineNumber": 2232,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-09-08T23:07:22.682Z"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue