From 6abda9e76cce35272ff73c3911af5aa8c18ce30b Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 2 Dec 2023 14:46:35 -0500 Subject: jimp cleanup --- src/client/views/PreviewCursor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/views/PreviewCursor.tsx b/src/client/views/PreviewCursor.tsx index e3a43d45f..d1bd0500b 100644 --- a/src/client/views/PreviewCursor.tsx +++ b/src/client/views/PreviewCursor.tsx @@ -50,7 +50,7 @@ export class PreviewCursor extends React.Component<{}> { PreviewCursor._slowLoadDocuments?.(plain.split('v=')[1].split('&')[0], options, generatedDocuments, '', undefined, PreviewCursor._addDocument).then(batch.end); } else if (re.test(plain)) { const url = plain; - if (url.startsWith(window.location.href)) { + if (!url.startsWith(window.location.href)) { undoBatch(() => PreviewCursor._addDocument( Docs.Create.WebDocument(url, { -- cgit v1.2.3-70-g09d2