summaryrefslogtreecommitdiff
path: root/client/splash/index.js
diff options
context:
space:
mode:
authorAdam Harvey <adam@ahprojects.com>2019-02-28 19:01:59 +0100
committerAdam Harvey <adam@ahprojects.com>2019-02-28 19:01:59 +0100
commita65dc729ec0d0a1e2287d67fc5fe2fc7ed878fec (patch)
tree5bdbf2c815860d291ccd03a3a8c49df22d58bd62 /client/splash/index.js
parentae75bcedcef5d2a77bb333e49206969f6ff1eb9b (diff)
parente845766d970f4afefc2fc47367c3478413f98ff2 (diff)
merge
Diffstat (limited to 'client/splash/index.js')
-rw-r--r--client/splash/index.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/client/splash/index.js b/client/splash/index.js
index e247b7f5..a21110f0 100644
--- a/client/splash/index.js
+++ b/client/splash/index.js
@@ -31,12 +31,14 @@ function build() {
function bind() {
document.querySelector('.slogan').addEventListener('click', modal.close)
- toArray(document.querySelectorAll('.aboutLink')).forEach(el => {
- el.addEventListener('click', modal.toggle)
- })
- document.querySelector('.about .inner').addEventListener('click', e => e.stopPropagation())
- document.querySelector('.about').addEventListener('click', modal.close)
- document.querySelector('.close').addEventListener('click', modal.close)
+ if (document.querySelector('.about')) {
+ toArray(document.querySelectorAll('.aboutLink')).forEach(el => {
+ el.addEventListener('click', modal.toggle)
+ })
+ document.querySelector('.about .inner').addEventListener('click', e => e.stopPropagation())
+ document.querySelector('.about').addEventListener('click', modal.close)
+ document.querySelector('.close').addEventListener('click', modal.close)
+ }
}
function animate() {