Skip to content

Commit 16ce347

Browse files
committed
Fix typo in status panel that make it crash
Add sanity check if extension has no body
1 parent 72742a9 commit 16ce347

File tree

11 files changed

+7
-4
lines changed

11 files changed

+7
-4
lines changed

dist/CNC/GRBL/index.html.gz

15 Bytes
Binary file not shown.

dist/CNC/GRBLHal/index.html.gz

15 Bytes
Binary file not shown.

dist/Plotter/HP-GL/index.html.gz

17 Bytes
Binary file not shown.
7 Bytes
Binary file not shown.
9 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.

dist/SandTable/GRBL/index.html.gz

12 Bytes
Binary file not shown.

src/components/App/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
import { h } from "preact"
1919
import { webUIbuild } from "../../targets"
20-
export const webUIversion = "3.0.0-a73"
20+
export const webUIversion = "3.0.0-a74"
2121
export const Esp3dVersion = () => (
2222
<span>
2323
{webUIversion}.{webUIbuild}

src/components/ExtraContent/extraContentItem.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ const ExtraContentItem = ({
175175
}, [id, loadContent])
176176

177177
useEffect(() => {
178-
console.log("Updating refresh interval for " + id)
179178
if (refreshtime > 0 && (type === "camera" || type === "image") && visibilityState[id] && !isPaused) {
179+
console.log("Updating refresh interval for " + id)
180180
if (!refreshIntervalRef.current){
181181
console.log("Starting refresh interval for " + id+ " with refreshtime " + refreshtime)
182182
refreshIntervalRef.current = setInterval(loadContent, refreshtime)
@@ -207,6 +207,10 @@ const ExtraContentItem = ({
207207

208208
const doc = iframeElement.contentWindow.document
209209
const body = doc.querySelector("body")
210+
if (!body){
211+
console.error("body not found")
212+
return
213+
}
210214
body.classList.add("body-extension")
211215
const css = document.querySelectorAll("style")
212216
css.forEach((csstag) => {

0 commit comments

Comments
 (0)