From e77ffef4f4a10d499a67852305ce57303f09ba29 Mon Sep 17 00:00:00 2001 From: Pavel Mineev Date: Thu, 7 Jan 2021 21:40:22 +0300 Subject: [PATCH] fix comments locator in example --- frontend/templates/demo.ejs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/templates/demo.ejs b/frontend/templates/demo.ejs index 2c2e80a5..707e62aa 100644 --- a/frontend/templates/demo.ejs +++ b/frontend/templates/demo.ejs @@ -124,7 +124,7 @@ var remark_config = { site_id: 'remark', host: '<%= htmlWebpackPlugin.options.REMARK_URL %>', - url: window.location.location, + url: window.location.href, components: ['embed', 'counter'], // __colors__: { // "--color0": "red", @@ -142,10 +142,9 @@ if ('noModule' in s) { s.type = 'module'; e = '.mjs'; - } else { - s.async = true; } - + + s.async = true; s.defer = true; s.src = remark_config.host + '/web/' + c[i] + e;