From fd313dfe574fb548b5dafc1b6ab52f02c5e904d6 Mon Sep 17 00:00:00 2001 From: TRMSC Date: Thu, 2 Nov 2023 14:11:16 +0100 Subject: [PATCH] activate template fetching --- docs/src/script.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/src/script.js b/docs/src/script.js index a154389..920284f 100644 --- a/docs/src/script.js +++ b/docs/src/script.js @@ -319,7 +319,6 @@ generateScene = () => { let templateName = document.getElementById('imagescene-template').value; let templatePath = '../templates/' + templateName + '.svg'; - /* // Fetch template content fetch(templatePath) .then(response => { @@ -339,10 +338,9 @@ generateScene = () => { .catch(error => { console.error('Fetch error:', error); }); - */ // TEMPORARY: Usage of a dummy code - let templateContent = ''; + // let templateContent = ''; // Replace placeholders templateContent = templateContent.replace(/\$URL/g, url);