diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-01-29 22:21:38 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-01-29 22:21:38 -0500 |
| commit | cee89f384cd1c5634f005dab042bd471edff37d4 (patch) | |
| tree | ef6dd18e510a600749a4af3ff83db569e3b6309a /static/js/web-install.js | |
| parent | e582d6ca4577767ab1c869b71fc0103e2706f96f (diff) | |
avoid inline CSS to fix CSP issue
Diffstat (limited to 'static/js/web-install.js')
| -rw-r--r-- | static/js/web-install.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/web-install.js b/static/js/web-install.js index 660fd02e..53596bf9 100644 --- a/static/js/web-install.js +++ b/static/js/web-install.js @@ -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; }; } |
