From 378ae1fdbcbc272735d1885143784a877d54d607 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Mon, 20 Jun 2022 14:46:39 +0200 Subject: [PATCH] fix: Render templates correctly when serving from bundled --- dist/common.js | 2 +- dist/runner.html | 26 ++++++++++++++------------ dist/runners.html | 22 ++++++++++++---------- dist/style.css | 5 +++++ 4 files changed, 32 insertions(+), 23 deletions(-) diff --git a/dist/common.js b/dist/common.js index 796de41..de363a2 100644 --- a/dist/common.js +++ b/dist/common.js @@ -14,7 +14,7 @@ const $ = (...args) => { const $$ = document.querySelectorAll.bind(document) function initTemplate(template, data) { - const fragment = template.content.cloneNode(true) + const fragment = template.cloneNode(true) Object.keys(data).forEach(key => { const field = fragment.querySelector('.' + key) const value = data[key] diff --git a/dist/runner.html b/dist/runner.html index 7d4b0d2..259c9ae 100644 --- a/dist/runner.html +++ b/dist/runner.html @@ -41,24 +41,26 @@ - +
+ + + + + + + + + + +
retry
+