mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2026-02-20 01:11:21 +01:00
Fix typo in status panel that make it crash
Add sanity check if extension has no body
This commit is contained in:
BIN
dist/CNC/GRBL/index.html.gz
vendored
BIN
dist/CNC/GRBL/index.html.gz
vendored
Binary file not shown.
BIN
dist/CNC/GRBLHal/index.html.gz
vendored
BIN
dist/CNC/GRBLHal/index.html.gz
vendored
Binary file not shown.
BIN
dist/Plotter/HP-GL/index.html.gz
vendored
BIN
dist/Plotter/HP-GL/index.html.gz
vendored
Binary file not shown.
BIN
dist/Printer3D/Marlin-embedded/index.html.gz
vendored
BIN
dist/Printer3D/Marlin-embedded/index.html.gz
vendored
Binary file not shown.
BIN
dist/Printer3D/Marlin/index.html.gz
vendored
BIN
dist/Printer3D/Marlin/index.html.gz
vendored
Binary file not shown.
BIN
dist/Printer3D/Repetier/index.html.gz
vendored
BIN
dist/Printer3D/Repetier/index.html.gz
vendored
Binary file not shown.
BIN
dist/Printer3D/Smoothieware/index.html.gz
vendored
BIN
dist/Printer3D/Smoothieware/index.html.gz
vendored
Binary file not shown.
BIN
dist/SandTable/GRBL/index.html.gz
vendored
BIN
dist/SandTable/GRBL/index.html.gz
vendored
Binary file not shown.
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
import { h } from "preact"
|
||||
import { webUIbuild } from "../../targets"
|
||||
export const webUIversion = "3.0.0-a73"
|
||||
export const webUIversion = "3.0.0-a74"
|
||||
export const Esp3dVersion = () => (
|
||||
<span>
|
||||
{webUIversion}.{webUIbuild}
|
||||
|
||||
@@ -175,8 +175,8 @@ const ExtraContentItem = ({
|
||||
}, [id, loadContent])
|
||||
|
||||
useEffect(() => {
|
||||
console.log("Updating refresh interval for " + id)
|
||||
if (refreshtime > 0 && (type === "camera" || type === "image") && visibilityState[id] && !isPaused) {
|
||||
console.log("Updating refresh interval for " + id)
|
||||
if (!refreshIntervalRef.current){
|
||||
console.log("Starting refresh interval for " + id+ " with refreshtime " + refreshtime)
|
||||
refreshIntervalRef.current = setInterval(loadContent, refreshtime)
|
||||
@@ -207,6 +207,10 @@ const ExtraContentItem = ({
|
||||
|
||||
const doc = iframeElement.contentWindow.document
|
||||
const body = doc.querySelector("body")
|
||||
if (!body){
|
||||
console.error("body not found")
|
||||
return
|
||||
}
|
||||
body.classList.add("body-extension")
|
||||
const css = document.querySelectorAll("style")
|
||||
css.forEach((csstag) => {
|
||||
|
||||
@@ -142,8 +142,7 @@ const StatusControls = () => {
|
||||
</div>
|
||||
)}
|
||||
{status.printState.printing &&
|
||||
status.printState.progress !=
|
||||
"NaN"(
|
||||
status.printState.progress != "NaN" && (
|
||||
<Fragment>
|
||||
<div class="extra-control-value">
|
||||
{status.printState.progress}%
|
||||
|
||||
Reference in New Issue
Block a user