From bbc6ba5f083cdb647dc74653af0919b0987cb830 Mon Sep 17 00:00:00 2001 From: wryk Date: Fri, 5 Nov 2021 20:36:19 +0100 Subject: [PATCH] change instace env var handling --- posthtml.config.js | 4 ++-- src/components/Radio.svelte | 4 ++-- src/index.html | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/posthtml.config.js b/posthtml.config.js index 5881880..7441868 100644 --- a/posthtml.config.js +++ b/posthtml.config.js @@ -2,8 +2,8 @@ module.exports = { plugins: { "posthtml-expressions": { locals: { - INSTANCE: process.env.INSTANCE + INSTANCE: process.env.INSTANCE || 'eldritch.cafe' } } } -}; \ No newline at end of file +}; diff --git a/src/components/Radio.svelte b/src/components/Radio.svelte index a210b0e..a7eddcd 100644 --- a/src/components/Radio.svelte +++ b/src/components/Radio.svelte @@ -34,7 +34,7 @@ const cache = new DeepSet() - const domain = writableStorage(localStorage, 'domain', window.instance || 'eldritch.cafe') + const domain = writableStorage(localStorage, 'domain', window.instance) const hashtags = writableStorage(localStorage, 'hashtags', [ 'np', @@ -160,4 +160,4 @@ stickyObserver.observe(viewerEl) }) - \ No newline at end of file + diff --git a/src/index.html b/src/index.html index dbf8a25..9965f3f 100644 --- a/src/index.html +++ b/src/index.html @@ -17,11 +17,9 @@ - - - \ No newline at end of file +