aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-20 17:56:42 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-20 17:56:42 -0400
commitf4b18882d8bd31272d5eb7555c9b80609715b935 (patch)
treee33fe687d118be50c9805d04862b9f5af9866d8a /src/client/views/collections
parentc04da1528de48a1e911f5c8989f32bfd0138882b (diff)
cleaned up some warnings
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 208925b1c..53acc15c3 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -332,7 +332,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
srcWeb = SelectionManager.SelectedDocuments()[0].props.Document;
srcUrl = (srcWeb.data as WebField).url.href?.match(/http[s]?:\/\/[^/]*/)?.[0];
}
- let reg = new RegExp(Utils.prepend(""), "g");
+ const reg = new RegExp(Utils.prepend(""), "g");
const modHtml = srcUrl ? html.replace(reg, srcUrl) : html;
const htmlDoc = Docs.Create.HtmlDocument(modHtml, { ...options, title: "-web page-", _width: 300, _height: 300 });
Doc.GetProto(htmlDoc)["data-text"] = text;