From 71f4cd3f118a8462b49090ceee6c45d1932aee7b Mon Sep 17 00:00:00 2001 From: Cedric Sam Date: Tue, 9 Sep 2025 11:00:18 -0400 Subject: [PATCH] In using `:video`, removes the requirement that URL must start with https * Could be useful for videos hosted at a relative URL or for URL rewriting (let's say you're on staging and want to point to a video on staging server; then switch to live seamlessly) * I could also see a case where the `.mp4` check could be removed but that seems like most people will support at least mp4 and can rewrite it if they're in an environment that allows JS --- ai2html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai2html.js b/ai2html.js index 4ef9225..1a11957 100644 --- a/ai2html.js +++ b/ai2html.js @@ -3559,7 +3559,7 @@ function convertSpecialLayers(activeArtboard, settings) { function makeVideoHtml(url, settings) { url = trim(url); - if (!/^https:/.test(url) || !/\.mp4$/.test(url)) { + if (!/\.mp4$/.test(url)) { return ''; } var srcName = isTrue(settings.use_lazy_loader) ? 'data-src' : 'src';