diff options
author | dan <[email protected]> | 2023-05-16 11:24:36 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-05-16 11:24:36 -0400 |
commit | c3f8712140b84542eeec79b5a039bfdc3c327e68 (patch) | |
tree | 1953d789a4b31671ce83b9c0f27d90eb567e8f33 /config.js | |
parent | 67895673ac3614003e6c3652892865f112d445b3 (diff) | |
download | simple-comments-widget-c3f8712140b84542eeec79b5a039bfdc3c327e68.tar.gz simple-comments-widget-c3f8712140b84542eeec79b5a039bfdc3c327e68.tar.bz2 simple-comments-widget-c3f8712140b84542eeec79b5a039bfdc3c327e68.zip |
feat: add demo page for github pages
Diffstat (limited to 'config.js')
-rw-r--r-- | config.js | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,4 +1,14 @@ -const config = { +// Default config +var config = { "base_url": "http://localhost:7060/comments", "page_id": "add-page-id-here" } + + +// github pages config +if (window.location.href === 'https://danielrholland.github.io/simple-comments-widget/client.html'){ + config = { + base_url : 'https://comments.dotemgo.com/comments', + page_id : 'https://danielrholland.github.io/simple-comments-widget/client.html' + }; +} |