aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordan <[email protected]>2023-05-16 14:48:54 -0400
committerdan <[email protected]>2023-05-16 14:48:54 -0400
commit841900a18847f2c301c74b1eba0645476bd0bcbc (patch)
treead6588c3854b5e325f143d20f642c39f7a148829
parent8c2a3aa915c0399d3a8109bbd1d26d55187c9646 (diff)
downloadsimple-comments-widget-841900a18847f2c301c74b1eba0645476bd0bcbc.tar.gz
simple-comments-widget-841900a18847f2c301c74b1eba0645476bd0bcbc.tar.bz2
simple-comments-widget-841900a18847f2c301c74b1eba0645476bd0bcbc.zip
fix: use hostname instead of href to detect if on gh pages
-rw-r--r--config.js2
-rw-r--r--index.html2
2 files changed, 2 insertions, 2 deletions
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'
diff --git a/index.html b/index.html
index 88b7ead..bde1c4d 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
</head>
<h1> Comments Demo Page </h1>
- <p>Demo page for github pages. Hosted at <a href='https://danielrholland.github.io/simple-comments-widget'>https://danielrholland.github.io/simple-comments-widget/</a>.</p>
+ <p>Page demonstrating usage of comments widget.</p>
<p>All comments on the demo server will be wiped automatically roughly every hour. Don't post anything stupid.</p>