aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/bundle.js')
-rw-r--r--public/javascripts/bundle.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/public/javascripts/bundle.js b/public/javascripts/bundle.js
index a9e5964..433b74e 100644
--- a/public/javascripts/bundle.js
+++ b/public/javascripts/bundle.js
@@ -721,8 +721,6 @@ favorite.on('click', function () {
favorite.toggle(state.selectedItem);
});
-window.weekSelector = weekSelector;
-
document.body.style.opacity = 1;
},{"./favorite":6,"./frontpage":7,"./schedule":9,"./search":10,"./weekSelector":11}],9:[function(require,module,exports){
@@ -927,4 +925,4 @@ self._nodes.nextButton.addEventListener('click', self._handleNextButtonClick);
module.exports = self;
},{"events":1}]},{},[8])
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJub2RlX21vZHVsZXMvZXZlbnRzL2V2ZW50cy5qcyIsIm5vZGVfbW9kdWxlcy9mdXp6eS9saWIvZnV6enkuanMiLCJub2RlX21vZHVsZXMvbGVmdC1wYWQvaW5kZXguanMiLCJwdWJsaWMvamF2YXNjcmlwdHMvYXV0b2NvbXBsZXRlLmpzIiwicHVibGljL2phdmFzY3JpcHRzL2Jyb3dzZXJGaXhUb29sa2l0LmpzIiwicHVibGljL2phdmFzY3JpcHRzL2Zhdm9yaXRlLmpzIiwicHVibGljL2phdmFzY3JpcHRzL2Zyb250cGFnZS5qcyIsInB1YmxpYy9qYXZhc2NyaXB0cy9tYWluLmpzIiwicHVibGljL2phdmFzY3JpcHRzL3NjaGVkdWxlLmpzIiwicHVibGljL2phdmFzY3JpcHRzL3NlYXJjaC5qcyIsInB1YmxpYy9qYXZhc2NyaXB0cy93ZWVrU2VsZWN0b3IuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Q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