From 0408ace4d226f52f1c5007c78791350b6774f078 Mon Sep 17 00:00:00 2001 From: Anatoli Nicolae Date: Tue, 17 Jan 2017 20:33:12 +0100 Subject: [PATCH] Minor Standard fixes and code commented (still WIP nav part) --- app/src/renderer/js/index.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/renderer/js/index.js b/app/src/renderer/js/index.js index 7942f8c..03a0be2 100755 --- a/app/src/renderer/js/index.js +++ b/app/src/renderer/js/index.js @@ -69,10 +69,11 @@ function backHomeButton (location) { link.innerHTML = '' - if ( location === 'home' ) + if (location === 'home') { element.classList.add('back-btn') - else + } else { element.classList.add('back-btn', 'inactive') + } element.appendChild(link) body.appendChild(element) @@ -107,18 +108,19 @@ function setDarkMode () { document.documentElement.classList.toggle('dark-mode', config.get('darkMode')) } -function fix404() { +function fix404 () { // Add missing elements const span = $('.root') const section = $('.page') const nav = document.createElement('nav') - let user = $('#link_profile a').href - span.id = 'react-root' section.classList.add('_8f735') nav.classList.add('_onabe', '_5z3y6') + /* + let user = $('#link_profile a').href + nav.innerHTML = '
\
\
\ @@ -149,6 +151,7 @@ function fix404() {
\
\
' + */ section.appendChild(nav) @@ -159,7 +162,6 @@ function fix404() { } function init () { - setDarkMode() if (!$(selectors.notFoundPage)) {