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:
@@ -68,7 +68,7 @@
|
||||
|
||||
var remark_config = {
|
||||
site_id: query.site_id,
|
||||
host: '<%= REMARK_URL %>' || window.location.origin,
|
||||
host: '<%= REMARK_URL %>' ,
|
||||
url: query.url
|
||||
};
|
||||
|
||||
|
||||
@@ -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
@@ -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__: {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<script>
|
||||
var remark_config = {
|
||||
site_id: 'remark',
|
||||
host: '<%= REMARK_URL %>' || window.location.origin,
|
||||
host: '<%= REMARK_URL %>',
|
||||
components: ['last-comments']
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user