From c3f8712140b84542eeec79b5a039bfdc3c327e68 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 16 May 2023 11:24:36 -0400 Subject: feat: add demo page for github pages --- config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'config.js') diff --git a/config.js b/config.js index 28e29eb..2290a3a 100644 --- a/config.js +++ b/config.js @@ -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' + }; +} -- cgit v1.2.3