From ab3f2de39ca6257db6aac6efa9baac66bf3f5684 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 25 Sep 2018 11:38:29 +0200 Subject: content update --- slides/vendor/slides.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/slides/vendor/slides.js b/slides/vendor/slides.js index 6e397de..c987e51 100644 --- a/slides/vendor/slides.js +++ b/slides/vendor/slides.js @@ -5,9 +5,7 @@ window.addEventListener('load', function(evt) { let wrapper = document.querySelector('div.wrapper'); let hash = window.location.hash.slice(1, window.location.hash.length); - if (hash.length == 0) { - main.innerHTML = '

No presentation selected!

'; - } else { + if (hash.length > 0) { fetch(`presentations/${hash}/default.pug`).then(function(response) { response.text().then(function(template) { -- cgit v1.2.3