Set image alt-text of notification close-button

This commit is contained in:
Daniel James Smith 2021-10-13 22:31:57 +02:00
parent 6fe904d48d
commit beb6b26f15
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<div id="content"></div>
<div>
<button type="button" class="neutral" id="close-button">
<img id="close" alt="X" />
<img id="close" alt="Close" />
</button>
</div>
</div>

View File

@ -26,6 +26,7 @@ document.addEventListener('DOMContentLoaded', () => {
: chrome.runtime.getURL('images/icon38.png');
document.getElementById('close').src = chrome.runtime.getURL('images/close.png');
document.getElementById('close').alt = i18n.close;
var closeButton = document.getElementById('close-button'),
body = document.querySelector('body'),