Show OAuth errors (2)

This commit is contained in:
M66B 2022-07-12 12:14:55 +02:00
parent 442efbd7ef
commit 320ab884bf
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
var url = new URL(window.location.href);
var error = url.searchParams.get('error');
if (error) {
document.getElementById('error').innerText = error;
document.getElementById('error').innerHTML = '<span>The email server said: <span class="error">' + error + '</span></span>';
document.getElementById('error').style.display = 'block';
}
} catch (error) {
@ -43,7 +43,7 @@
<h1>FairEmail</h1>
<p><img src="https://raw.githubusercontent.com/M66B/FairEmail/master/app/src/main/ic_launcher-web.png" alt="FairEmail" height="72" width="72" /></p>
<h2>&#x1F6E1; OAuth</h2>
<p id="error" class="error" style="display: none;"></p>
<p id="error" style="display: none;"></p>
<p><button id="oauth" class="button-large">Continue</button> to the app</p>
<noscript><h2>Please enable JavaScript or disable your ad blocker</h2></noscript>
<br>