Remove innerHTML use

* Bump to version 1.3.1
This commit is contained in:
Corentin 2023-03-20 06:38:08 +09:00
commit 4107bbc093
3 changed files with 3 additions and 3 deletions

View file

@ -20,5 +20,5 @@
"storage", "storage",
"clipboardWrite" "clipboardWrite"
], ],
"version": "1.3.0" "version": "1.3.1"
} }

View file

@ -7,7 +7,7 @@
</head> </head>
<body> <body>
<div id="notification"> <div id="notification">
<span id="notification-text"></span> <span id="notification-text"> </span>
<img src="/icons/close.svg"/> <img src="/icons/close.svg"/>
</div> </div>
<div id="password-container"> <div id="password-container">

View file

@ -132,7 +132,7 @@ function _notification()
{ {
if(notifications.length !== 0 && notification_timeout === null) if(notifications.length !== 0 && notification_timeout === null)
{ {
notification_text_elt.innerHTML = notifications[0] notification_text_elt.firstChild.data = notifications[0]
notification_elt.classList.add('show') notification_elt.classList.add('show')
notification_timeout = setTimeout(_next_notification, notification_delay) notification_timeout = setTimeout(_next_notification, notification_delay)
} }