From 45043a53a1979ea6e670fa7c182248de6927e3cd Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 23 Dec 2023 23:01:02 +0100 Subject: [PATCH] lint --- prosemirror-versions/prosemirror-versions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prosemirror-versions/prosemirror-versions.js b/prosemirror-versions/prosemirror-versions.js index bb8a125..c6f305f 100644 --- a/prosemirror-versions/prosemirror-versions.js +++ b/prosemirror-versions/prosemirror-versions.js @@ -72,7 +72,7 @@ const unrenderVersion = editorview => { * @param {Version} version * @param {Version|null} prevSnapshot */ -const versionTemplate = (editorview, version, prevSnapshot) => html`
renderVersion(editorview, version, prevSnapshot)}>${new Date(version.date).toLocaleString()}
` +const versionTemplate = (editorview, version, prevSnapshot) => html`
renderVersion(editorview, version, prevSnapshot)}>${new Date(version.date).toLocaleString()}
` const versionList = (editorview, doc) => { const versions = doc.getArray('versions') @@ -80,7 +80,7 @@ const versionList = (editorview, doc) => { } const snapshotButton = doc => { - return html`` + return html`` } /** @@ -94,7 +94,7 @@ export const attachVersion = (parent, doc, editorview) => { render(html`
${snapshotButton(doc)}${versionList(editorview, doc)}
`, vContainer) } updateLiveTrackingState(editorview) - liveTracking.addEventListener('click', e => { + liveTracking.addEventListener('click', () => { if (liveTracking.checked) { const versions = doc.getArray('versions') const lastVersion = versions.length > 0 ? Y.decodeSnapshot(versions.get(versions.length - 1).snapshot) : Y.emptySnapshot