diff --git a/app/routes/index.py b/app/routes/index.py index a435e59..6fe5014 100644 --- a/app/routes/index.py +++ b/app/routes/index.py @@ -5,7 +5,12 @@ from app.utils.render import render @app.route('/') def index(): - return render('index.html', styles=["+css/homepage.css"]) + return render('index.html', + styles=["+css/homepage.css"], + scripts=[ + "+scripts/v5shoutbox_ui.js", + "+scripts/v5shoutbox.js" + ]) @app.errorhandler(404) diff --git a/app/utils/render.py b/app/utils/render.py index bc9ca27..e44116c 100644 --- a/app/utils/render.py +++ b/app/utils/render.py @@ -33,8 +33,6 @@ def render(*args, styles=[], scripts=[], modules=[], **kwargs): 'scripts/tag_selector.js', 'scripts/editor.js', 'scripts/v5shoutbox_irc.js', - 'scripts/v5shoutbox_ui.js', - 'scripts/v5shoutbox.js', ] modules_ = [ 'scripts/emoji-picker-element/index.js',