aboutsummaryrefslogtreecommitdiff
path: root/slides
diff options
context:
space:
mode:
Diffstat (limited to 'slides')
-rw-r--r--slides/vendor/slides.js4
1 files changed, 1 insertions, 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) {
5 let wrapper = document.querySelector('div.wrapper'); 5 let wrapper = document.querySelector('div.wrapper');
6 let hash = window.location.hash.slice(1, window.location.hash.length); 6 let hash = window.location.hash.slice(1, window.location.hash.length);
7 7
8 if (hash.length == 0) { 8 if (hash.length > 0) {
9 main.innerHTML = '<h1>No presentation selected!</h1>';
10 } else {
11 9
12 fetch(`presentations/${hash}/default.pug`).then(function(response) { 10 fetch(`presentations/${hash}/default.pug`).then(function(response) {
13 response.text().then(function(template) { 11 response.text().then(function(template) {