From 7ff8796266be53fff3621c1ea780fa93c02a67ac Mon Sep 17 00:00:00 2001 From: Ludwig Schubert Date: Tue, 6 Mar 2018 16:13:05 -0800 Subject: [PATCH] Improve interstitial behavior Remove if no password during pre-render Remove if no password during onFrontMatterChanged Remove self if on production host --- src/components/d-interstitial.js | 38 +++++++++++++++++++++------ src/controller.js | 6 ++++- src/transforms/optional-components.js | 2 ++ 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/components/d-interstitial.js b/src/components/d-interstitial.js index e214f66..22e1b27 100644 --- a/src/components/d-interstitial.js +++ b/src/components/d-interstitial.js @@ -3,6 +3,7 @@ import { Template } from '../mixins/template'; // This overlay is not secure. // It is only meant as a social deterrent. +const productionHostname = 'distill.pub'; const T = Template('d-interstitial', `