avoid inline CSS to fix CSP issue
This commit is contained in:
parent
e582d6ca45
commit
cee89f384c
@ -28,7 +28,7 @@
|
|||||||
<link rel="license" href="/LICENSE.txt"/>
|
<link rel="license" href="/LICENSE.txt"/>
|
||||||
<script type="module" src="/js/redirect.js?9"></script>
|
<script type="module" src="/js/redirect.js?9"></script>
|
||||||
<script type="module" src="/js/fastboot/dist/fastboot.min.mjs?1"></script>
|
<script type="module" src="/js/fastboot/dist/fastboot.min.mjs?1"></script>
|
||||||
<script type="module" src="/js/web-install.js?5"></script>
|
<script type="module" src="/js/web-install.js?6"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
@ -182,7 +182,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<strong id="flash-release-status"></strong>
|
<strong id="flash-release-status"></strong>
|
||||||
<!-- This appears as part of the status -->
|
<!-- This appears as part of the status -->
|
||||||
<button id="flash-reconnect-button" style="display: none;"><strong>Reconnect device</strong></button>
|
<button id="flash-reconnect-button" hidden="hidden"><strong>Reconnect device</strong></button>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -154,10 +154,10 @@ async function reconnectCallback() {
|
|||||||
"In order to continue flashing, you need to reconnect the device by tapping here:";
|
"In order to continue flashing, you need to reconnect the device by tapping here:";
|
||||||
|
|
||||||
let reconnectButton = document.getElementById("flash-reconnect-button");
|
let reconnectButton = document.getElementById("flash-reconnect-button");
|
||||||
reconnectButton.style.display = "inline-block";
|
reconnectButton.hidden = false;
|
||||||
reconnectButton.onclick = async () => {
|
reconnectButton.onclick = async () => {
|
||||||
await device.connect();
|
await device.connect();
|
||||||
reconnectButton.style.display = "none";
|
reconnectButton.hidden = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user