Skip to content

Commit ef2f17a

Browse files
author
Gavin Jaeger-Freeborn
committed
Handle edge case with Opera Mobile being encoded as "OPERA MOBI"
Signed-off-by: Gavin Jaeger-Freeborn <[email protected]>
1 parent 63615e3 commit ef2f17a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html-templates/verified_credentials.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ <h5 v-if="state.showScanned" class="fw-bolder mb-3">
299299
PREFIX_MOBILE = 'Mobile ';
300300
// @type string
301301
const b = uap.getResult().browser.name
302-
const browserName = b.startsWith(PREFIX_MOBILE) ? b.split(" ")[1] : b
302+
const browserName = b.startsWith(PREFIX_MOBILE) ? b.split(" ")[1] : b.split(" ")[0]
303303
return `{{wallet_deep_link}}?browser=${browserName.toUpperCase()}`;
304304
}
305305
console.log(`Detected Browser: ${uap.getResult().browser.name}`)

0 commit comments

Comments
 (0)