Minor change

This commit is contained in:
Yarmo Mackenbach 2020-10-25 01:12:57 +02:00
parent cbd86d81aa
commit 5c6b0e0507

View file

@ -41,7 +41,7 @@ const verify = async (uri, fingerprint, opts) => {
res = null
if (!spData.proof.useProxy || 'forceDirectRequest' in opts && opts.forceDirectRequest) {
if (!spData.proof.useProxy || 'useProxyWhenNeeded' in opts && !opts.useProxyWhenNeeded) {
res = await req(spData.proof.fetch ? spData.proof.fetch : spData.proof.uri)
switch (spData.proof.format) {