This commit is contained in:
@@ -21,9 +21,7 @@
|
|||||||
<div id="result-safe" style="display:none;">
|
<div id="result-safe" style="display:none;">
|
||||||
<div style="font-size: 3rem; margin-bottom: 0.5rem;">✅</div>
|
<div style="font-size: 3rem; margin-bottom: 0.5rem;">✅</div>
|
||||||
<h2>Verified Loot Hunt QR</h2>
|
<h2>Verified Loot Hunt QR</h2>
|
||||||
<p style="color: var(--muted); margin-bottom: 1rem;">This code points to a verified Loot Hunt page.</p>
|
<p style="color: var(--muted); margin-bottom: 1rem;">Looks good to us; lets go!</p>
|
||||||
<a id="result-safe-link" href="#" class="btn btn-primary" style="width: 100%; justify-content: center; font-size: 1rem;">Open Package</a>
|
|
||||||
<button onclick="resumeScanner()" class="btn btn-outline" style="width: 100%; margin-top: 0.5rem;">Scan Another</button>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="result-warning" style="display:none;">
|
<div id="result-warning" style="display:none;">
|
||||||
<div style="font-size: 3rem; margin-bottom: 0.5rem;">⚠️</div>
|
<div style="font-size: 3rem; margin-bottom: 0.5rem;">⚠️</div>
|
||||||
@@ -211,6 +209,11 @@
|
|||||||
if (isTrusted) {
|
if (isTrusted) {
|
||||||
document.getElementById('result-safe').style.display = 'block';
|
document.getElementById('result-safe').style.display = 'block';
|
||||||
document.getElementById('result-safe-link').href = data;
|
document.getElementById('result-safe-link').href = data;
|
||||||
|
// Go to the package page after 1 second to give user feedback that the scan was successful
|
||||||
|
setTimeout(function() {
|
||||||
|
window.location.href = data;
|
||||||
|
return;
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('result-warning').style.display = 'block';
|
document.getElementById('result-warning').style.display = 'block';
|
||||||
document.getElementById('result-warning-url').textContent = data;
|
document.getElementById('result-warning-url').textContent = data;
|
||||||
|
|||||||
Reference in New Issue
Block a user