aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/templates/home.html2
-rw-r--r--src/web/views/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/templates/home.html b/src/web/templates/home.html
index c2966be7..fcb2a042 100644
--- a/src/web/templates/home.html
+++ b/src/web/templates/home.html
@@ -18,5 +18,5 @@
<body>
<section id="jarrapp" />
</body>
- <script type="text/javascript" src="{{ url_for('static', filename = 'js/bundle.min.js') }}"></script>
+ <script type="text/javascript" src="{% if cdn != '' %}{{ cdn }}bundle.min.js{% else %}{{ url_for('static', filename = 'js/bundle.min.js') }}{% endif %}"></script>
</html>
diff --git a/src/web/views/views.py b/src/web/views/views.py
index 223f96e9..88f3f8ce 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -237,7 +237,7 @@ from flask import jsonify
@login_required
@etag_match
def home():
- return render_template('home.html')
+ return render_template('home.html', cdn=conf.CDN_ADDRESS)
@app.route('/menu')
bgstack15