mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
remove obsolete errorSvg
This commit is contained in:
parent
3df712b64f
commit
c85f70e197
@ -7,7 +7,6 @@ import openService from "./open.js";
|
||||
import froca from "./froca.js";
|
||||
import utils from "./utils.js";
|
||||
import linkService from "./link.js";
|
||||
import errorSvg from "../widgets/type_widgets/canvas-utils/errorSvg.js";
|
||||
|
||||
let idCounter = 1;
|
||||
|
||||
@ -150,7 +149,7 @@ async function getRenderedContent(note, options = {}) {
|
||||
const content = noteComplement.content || "";
|
||||
|
||||
try {
|
||||
const placeHolderSVG = errorSvg;
|
||||
const placeHolderSVG = "<svg />";
|
||||
const data = JSON.parse(content)
|
||||
const svg = data.svg || placeHolderSVG;
|
||||
/**
|
||||
|
@ -1,11 +0,0 @@
|
||||
/**
|
||||
* used a placeholder, when svg parsing fails
|
||||
*/
|
||||
const erorrSvg = `<svg viewBox="0 0 240 80" style="background-color: white" xmlns="http://www.w3.org/2000/svg">
|
||||
<style>.red { font: 12px serif; fill: red; }</style>
|
||||
<text x="20" y="35" class="red">
|
||||
Error: note svg is undefined or empty
|
||||
</text>
|
||||
</svg>`;
|
||||
|
||||
export default erorrSvg;
|
Loading…
x
Reference in New Issue
Block a user