Commit feb37a47 authored by Romain Courteaud's avatar Romain Courteaud

erp5_svg_editor: stop autoloading content from localstorage

parent b8bd2afe
......@@ -32,7 +32,7 @@ const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]);
const eyedropper = svgCanvas.addExtension.apply(this, ["eyedropper", MD.Eyedropper]);
state.set("canvasId", t("Untitled"));
state.set("canvasMode", state.get("canvasMode"));
/*
// load from param
console.log(window.location.search)
if (!window.location.search.includes("?load=")) {
......@@ -56,7 +56,7 @@ else {
}
state.set("canvasTitle", svgCanvas.getDocumentTitle());
*/
//editor.paintBox.fill.setPaint(state.get("canvasFill"));
//editor.paintBox.stroke.setPaint(state.get("canvasStroke"));
//editor.paintBox.canvas.setPaint(state.get("canvasBackground"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment