From 19ffa14f103806fca718ef9badfb4e9565fbecf1 Mon Sep 17 00:00:00 2001 From: azivner Date: Tue, 26 Dec 2017 22:19:42 -0500 Subject: [PATCH] hide logout button in electron since it doesn't do anything --- public/javascripts/init.js | 4 +++- views/index.ejs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/public/javascripts/init.js b/public/javascripts/init.js index b1c0d4a1e..5fec6178f 100644 --- a/public/javascripts/init.js +++ b/public/javascripts/init.js @@ -164,4 +164,6 @@ window.onerror = function (msg, url, lineNo, columnNo, error) { messaging.logError(message); return false; -}; \ No newline at end of file +}; + +$("#logout-button").toggle(!isElectron()); \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index 7611f09c4..2c3a6c774 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -29,7 +29,7 @@ -
+
@@ -172,11 +172,11 @@