From 1c8064c28368a21c79bb3b5ed249788c0de8bd21 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Mon, 23 Oct 2023 19:10:11 +0300 Subject: [PATCH] fix: hack playground --- docs/_data/playgrounds.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_data/playgrounds.cjs b/docs/_data/playgrounds.cjs index 31d16d5b42..2f82b3809d 100644 --- a/docs/_data/playgrounds.cjs +++ b/docs/_data/playgrounds.cjs @@ -165,7 +165,7 @@ module.exports = async function(data) { Tools.createCommentNode('playground-hide'), Tools.createElement('script', { type: 'module', - src: `./${moduleName}`, + src: `./${demoSlug === 'index.html' ? '' : `${demoSlug}/`}${moduleName}`, }), Tools.createTextNode('\n\n'), Tools.createCommentNode('playground-hide-end'),