add property max_shown_comments to settings object

This commit is contained in:
igoradamenko
2018-06-10 23:15:30 +03:00
parent 1151d4982e
commit 5fe785490e
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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() {
+1
View File
@@ -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'];