forked from isso-comments/isso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isso: js: embed.js: Preserve default config values
This way, Isso is not confusing users when a server config value overwrites a client default one, i.e. if the user has not actually attempted to overwrite it.
- Loading branch information
Showing
3 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use strict"; | ||
|
||
var default_config = { | ||
"css": true, | ||
"css-url": null, | ||
"lang": "", | ||
"default-lang": "en", | ||
"max-comments-top": "inf", | ||
"max-comments-nested": 5, | ||
"reveal-on-click": 5, | ||
"avatar": true, | ||
"avatar-bg": "#f0f0f0", | ||
"avatar-fg": ["#9abf88", "#5698c4", "#e279a3", "#9163b6", | ||
"#be5168", "#f19670", "#e4bf80", "#447c69"].join(" "), | ||
"vote": true, | ||
"vote-levels": null, | ||
"feed": false | ||
}; | ||
|
||
module.exports = default_config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters