avoid inline CSS to fix CSP issue

This commit is contained in:
Daniel Micay
2021-01-29 22:21:38 -05:00
parent e582d6ca45
commit cee89f384c
2 changed files with 4 additions and 4 deletions

View File

@@ -154,10 +154,10 @@ async function reconnectCallback() {
"In order to continue flashing, you need to reconnect the device by tapping here:";
let reconnectButton = document.getElementById("flash-reconnect-button");
reconnectButton.style.display = "inline-block";
reconnectButton.hidden = false;
reconnectButton.onclick = async () => {
await device.connect();
reconnectButton.style.display = "none";
reconnectButton.hidden = true;
};
}