mirror of
https://github.com/Qortal/qortal.git
synced 2025-05-05 09:17:51 +00:00
Fixed sample app
This commit is contained in:
parent
5a052a4f67
commit
2822d860d8
@ -352,6 +352,7 @@ Here is a sample application to display the logged-in user's avatar:
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script>
|
<script>
|
||||||
|
async function showAvatar() {
|
||||||
try {
|
try {
|
||||||
// Get QORT address of logged in account
|
// Get QORT address of logged in account
|
||||||
let address = await qortalRequest({
|
let address = await qortalRequest({
|
||||||
@ -386,6 +387,8 @@ Here is a sample application to display the logged-in user's avatar:
|
|||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log("Error: " + JSON.stringify(e));
|
console.log("Error: " + JSON.stringify(e));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
showAvatar();
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user