From 80fb91976efbb7b26e38fbd60a0224916fdac2e4 Mon Sep 17 00:00:00 2001
From: geekyd
Date: Wed, 18 Oct 2017 03:34:26 +0530
Subject: Hides empty export section
---
public/views/hackmd/header.ejs | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'public')
diff --git a/public/views/hackmd/header.ejs b/public/views/hackmd/header.ejs
index 87d2b065..bde9033a 100644
--- a/public/views/hackmd/header.ejs
+++ b/public/views/hackmd/header.ejs
@@ -32,6 +32,7 @@
+ <% if((typeof github !== 'undefined' && github) || (typeof dropbox !== 'undefined' && dropbox) || (typeof google !== 'undefined' && google) || (typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api'))) { %>
Dropbox
@@ -46,6 +47,7 @@
Snippet
<% } %>
+ <% } %>
Dropbox
@@ -129,6 +131,7 @@
+ <% if((typeof github !== 'undefined' && github) || (typeof dropbox !== 'undefined' && dropbox) || (typeof google !== 'undefined' && google) || (typeof gitlab !== 'undefined' && gitlab && (!gitlab.scope || gitlab.scope === 'api'))) { %>
Dropbox
@@ -143,6 +146,7 @@
Snippet
<% } %>
+ <% } %>
Dropbox
--
cgit v1.2.3