diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2018-09-25 11:38:29 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2018-09-25 11:38:29 +0200 |
| commit | ab3f2de39ca6257db6aac6efa9baac66bf3f5684 (patch) | |
| tree | 122230601bd07cfe80181c5f84ec5ef727354858 /slides | |
| parent | 8b581c4962c7c244446d0996849f9fad71cfaa66 (diff) | |
| download | mitjafelicijan.com-ab3f2de39ca6257db6aac6efa9baac66bf3f5684.tar.gz | |
content update
Diffstat (limited to 'slides')
| -rw-r--r-- | slides/vendor/slides.js | 4 |
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) { |
