From 841900a18847f2c301c74b1eba0645476bd0bcbc Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 16 May 2023 14:48:54 -0400 Subject: fix: use hostname instead of href to detect if on gh pages --- config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.js') diff --git a/config.js b/config.js index 2290a3a..db6ccab 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,7 @@ var config = { // github pages config -if (window.location.href === 'https://danielrholland.github.io/simple-comments-widget/client.html'){ +if (window.location.hostname === 'danielrholland.github.io'){ config = { base_url : 'https://comments.dotemgo.com/comments', page_id : 'https://danielrholland.github.io/simple-comments-widget/client.html' -- cgit v1.2.3