Simplified js expression in templates

REMARK_URL is required and window.location.origin is not needed.

https://github.com/umputun/remark42/pull/806#discussion_r519458452
This commit is contained in:
sattellite
2020-11-10 11:04:07 -06:00
committed by Umputun
parent 06c3406e30
commit abe3b0d47a
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
var remark_config = {
site_id: query.site_id,
host: '<%= REMARK_URL %>' || window.location.origin,
host: '<%= REMARK_URL %>' ,
url: query.url
};
+1 -1
View File
@@ -39,7 +39,7 @@
<script>
var remark_config = {
site_id: 'remark',
host: '<%= REMARK_URL %>' || window.location.origin,
host: '<%= REMARK_URL %>',
url: 'https://remark42.com/demo/',
components: ['counter']
};
+1 -1
View File
@@ -123,7 +123,7 @@
var remark_config = {
site_id: 'remark',
host: '<%= REMARK_URL %>' || window.location.origin,
host: '<%= REMARK_URL %>',
url: 'https://remark42.com/demo/',
components: ['embed', 'counter'],
// __colors__: {
+1 -1
View File
@@ -25,7 +25,7 @@
<script>
var remark_config = {
site_id: 'remark',
host: '<%= REMARK_URL %>' || window.location.origin,
host: '<%= REMARK_URL %>',
components: ['last-comments']
};