add property max_shown_comments to settings object
This commit is contained in:
@@ -221,7 +221,8 @@ Add this snippet to the bottom of web page:
|
||||
<script>
|
||||
var remark_config = {
|
||||
site_id: 'YOUR_SITE_ID',
|
||||
url: 'PAGE_URL', // optional param; if url isn't defined window.location.href will be used
|
||||
url: 'PAGE_URL', // optional param; if it isn't defined window.location.href will be used
|
||||
max_shown_comments: 10, // optional param; if it isn't defined default value (15) will be used
|
||||
};
|
||||
|
||||
(function() {
|
||||
|
||||
@@ -6,3 +6,4 @@ const querySettings = window.location.search.substr(1).split('&').reduce((acc, p
|
||||
|
||||
export const siteId = querySettings['site_id'];
|
||||
export const url = querySettings['url'];
|
||||
export const maxShownComments = querySettings['max_shown_comments'];
|
||||
|
||||
Reference in New Issue
Block a user