Commit 58b1c309 authored by Romain Courteaud's avatar Romain Courteaud

erp5_svg_editor: stop autoloading content from localstorage

parent 9c66f8bc
...@@ -32,7 +32,7 @@ const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]); ...@@ -32,7 +32,7 @@ const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]);
const eyedropper = svgCanvas.addExtension.apply(this, ["eyedropper", MD.Eyedropper]); const eyedropper = svgCanvas.addExtension.apply(this, ["eyedropper", MD.Eyedropper]);
state.set("canvasId", t("Untitled")); state.set("canvasId", t("Untitled"));
state.set("canvasMode", state.get("canvasMode")); state.set("canvasMode", state.get("canvasMode"));
/*
// load from param // load from param
console.log(window.location.search) console.log(window.location.search)
if (!window.location.search.includes("?load=")) { if (!window.location.search.includes("?load=")) {
...@@ -56,7 +56,7 @@ else { ...@@ -56,7 +56,7 @@ else {
} }
state.set("canvasTitle", svgCanvas.getDocumentTitle()); state.set("canvasTitle", svgCanvas.getDocumentTitle());
*/
//editor.paintBox.fill.setPaint(state.get("canvasFill")); //editor.paintBox.fill.setPaint(state.get("canvasFill"));
//editor.paintBox.stroke.setPaint(state.get("canvasStroke")); //editor.paintBox.stroke.setPaint(state.get("canvasStroke"));
//editor.paintBox.canvas.setPaint(state.get("canvasBackground")); //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