Revert "Add client-side note encryption"

This reverts commit 5cf5a45682.
This commit is contained in:
eezd committed 2026-10-17 14:56:23 +08:00
1 parent 5cf5a45682
commit b26c5aa693
20 files changed
+39 -899

No files matched your search

+1 -4
View File
@@ -123,7 +123,6 @@ export class ImageWidget extends WidgetType {
constructor(
readonly src: string,
readonly alt: string,
readonly load: (src: string) => Promise<string> | null = () => null,
) {
super()
}
@@ -134,9 +133,7 @@ export class ImageWidget extends WidgetType {
const wrap = document.createElement('span')
wrap.className = 'cm-rm-image'
const img = document.createElement('img')
const loading = this.load(this.src)
if (loading) loading.then((url) => (img.src = url), () => img.dispatchEvent(new Event('error')))
else img.src = this.src
img.src = this.src
img.alt = this.alt
img.loading = 'lazy'
img.decoding = 'async'