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;