summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJannik Lorenz2016-04-23 14:34:15 +0200
committerJannik Lorenz2016-04-23 14:34:15 +0200
commit55a1ba0699c77ecfea2d2f2cefa6fae9ff0c289d (patch)
tree075e5cb02b7a971a914634853777bdb4bf09fab0 /public
parent404e44649f4fe6ee8d0ea649cf9d157c229ab52c (diff)
Fix google drive config
Diffstat (limited to '')
-rw-r--r--public/views/header.ejs12
1 files changed, 6 insertions, 6 deletions
diff --git a/public/views/header.ejs b/public/views/header.ejs
index aeadb043..0c7f6e17 100644
--- a/public/views/header.ejs
+++ b/public/views/header.ejs
@@ -33,13 +33,13 @@
<li role="presentation"><a role="menuitem" class="ui-beta-slide" tabindex="-1" href="#" target="_blank"><i class="fa fa-tv fa-fw"></i> Slide Mode</a>
</li>
<li class="divider"></li>
- <% if(googleDrive || googleDrive || github) { %>
+ <% if((googleDrive == "true") || (typeof dropbox !== 'undefined' && dropbox) || (typeof github !== 'undefined' && github)) { %>
<li class="dropdown-header">Export</li>
<% if(typeof dropbox !== 'undefined' && dropbox) { %>
<li role="presentation"><a role="menuitem" class="ui-save-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
</li>
<% } %>
- <% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
+ <% if(googleDrive == "true") { %>
<li role="presentation"><a role="menuitem" class="ui-save-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-upload fa-fw"></i> Google Drive</a>
</li>
<% } %>
@@ -54,7 +54,7 @@
<li role="presentation"><a role="menuitem" class="ui-import-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
</li>
<% } %>
- <% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
+ <% if(googleDrive == "true") { %>
<li role="presentation"><a role="menuitem" class="ui-import-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-download fa-fw"></i> Google Drive</a>
</li>
<% } %>
@@ -128,13 +128,13 @@
<li role="presentation"><a role="menuitem" class="ui-beta-slide" tabindex="-1" href="#" target="_blank"><i class="fa fa-tv fa-fw"></i> Slide Mode</a>
</li>
<li class="divider"></li>
- <% if(googleDrive || googleDrive || github) { %>
+ <% if((googleDrive == "true") || (typeof dropbox !== 'undefined' && dropbox) || (typeof github !== 'undefined' && github)) { %>
<li class="dropdown-header">Export</li>
<% if(typeof dropbox !== 'undefined' && dropbox) { %>
<li role="presentation"><a role="menuitem" class="ui-save-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
</li>
<% } %>
- <% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
+ <% if(googleDrive == "true") { %>
<li role="presentation"><a role="menuitem" class="ui-save-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-upload fa-fw"></i> Google Drive</a>
</li>
<% } %>
@@ -149,7 +149,7 @@
<li role="presentation"><a role="menuitem" class="ui-import-dropbox" tabindex="-1" href="#" target="_self"><i class="fa fa-dropbox fa-fw"></i> Dropbox</a>
</li>
<% } %>
- <% if(typeof googleDrive !== 'undefined' && googleDrive) { %>
+ <% if(googleDrive == "true") { %>
<li role="presentation"><a role="menuitem" class="ui-import-google-drive" tabindex="-1" href="#" target="_self"><i class="fa fa-cloud-download fa-fw"></i> Google Drive</a>
</li>
<% } %>