From 6591c4245a004ec355c8b777e8b701420415b3f7 Mon Sep 17 00:00:00 2001 From: "zs.matrix62" Date: Wed, 2 Mar 2022 00:33:04 +0800 Subject: [PATCH] chore; --- README.md | 2 +- web-src/src/app/tool-blocks/base64serde.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e57a5dd..b472402 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ the [release page](https://github.com/echoo-app/echoo-app/releases). ---- -![](docs/json-1.png) +![](docs/img/json-1.png) ----- diff --git a/web-src/src/app/tool-blocks/base64serde.tsx b/web-src/src/app/tool-blocks/base64serde.tsx index 12a63c5..c5c4d50 100644 --- a/web-src/src/app/tool-blocks/base64serde.tsx +++ b/web-src/src/app/tool-blocks/base64serde.tsx @@ -138,21 +138,20 @@ export const Base64SerdeStringBlockBlock = () => { ; export const Base64SerdeImageBlockBlock = () => { - const regImgTagSrcBase64 = ` { let src = "data:image/jpeg;base64,"; src += data let newImage = document.createElement("img"); newImage.src = src - newImage.onerror = function (s) { + newImage.onerror = function (_) { newImage.src = "" } return newImage } const [base64SourceType, setBase64SourceType] = useObservableState((obs) => { - obs.subscribe(t => { + obs.subscribe(_ => { onInValueChanged("") }) return obs