on resize

main
km0 3 years ago
parent 7e18ba2726
commit e87503f568

@ -24,6 +24,10 @@ class Cable {
}
}
window.addEventListener("resize", (e) => {
svgElement.setAttribute("viewBox", `0 0 ${svgElement.clientWidth} ${svgElement.clientHeight}`);
});
window.addEventListener("mousedown", function (e) {
let socket = e.target;

Loading…
Cancel
Save