Fix persistent headers/footers
Also removed an unnecessary console.log.
Change-Id: I8700f62e7558e77922f95319bb1c7c5f7e76c0b8
diff --git a/js/script.js b/js/script.js
index c04daa6..aab60d9 100644
--- a/js/script.js
+++ b/js/script.js
@@ -34,7 +34,6 @@
if (hasTimes) {
var time = document.createElement('div');
time.classList.add('song-time');
- console.log(song.begins);
time.textContent = convertTime(song.begins);
div.append(time);
@@ -85,9 +84,13 @@
if ('customHeader' in booklet)
document.getElementById('booklet-custom-header').innerHTML =
booklet.customHeader;
+ else
+ document.getElementById('booklet-custom-header').textContent = '';
if ('customFooter' in booklet)
document.getElementById('booklet-custom-footer').innerHTML =
booklet.customFooter;
+ else
+ document.getElementById('booklet-custom-footer').textContent = '';
var bookletContent = document.getElementById('booklet-content');
bookletContent.textContent = '';
diff --git a/sw.js b/sw.js
index 8008101..51e7c08 100644
--- a/sw.js
+++ b/sw.js
@@ -1,4 +1,4 @@
-var CACHE_NAME = 'all-v1.1.7';
+var CACHE_NAME = 'all-v1.1.8';
var urlsToCache = [
'/',
'/css/styles.css',