mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 04:43:26 +01:00
Preliminary support for better performance testing
This commit is contained in:
committed by
Josh Perez
parent
fd8339e2ff
commit
f98c3cba8c
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user