Move popups to correct loading order

Move away from yeeted Ajax code to fetch
This commit is contained in:
Michał Gdula 2023-04-03 03:43:20 +00:00
parent e2bf5ed4e2
commit ad547c4ccf
5 changed files with 31 additions and 46 deletions

View file

@ -58,12 +58,9 @@ def create_app(test_config=None):
app.config.from_mapping(test_config)
# Load JS assets
js_pre = Bundle('js/pre/*.js', output='gen/pre_packed.js')
js_post = Bundle('js/post/*.js', output='gen/post_packed.js')
styles = Bundle('sass/*.sass', filters='libsass', output='gen/styles.css')
assets.register('js_pre', js_pre)
assets.register('js_post', js_post)
assets.register('styles', styles)
assets.register('js_pre', Bundle('js/pre/*.js', output='gen/pre_packed.js'))
assets.register('js_post', Bundle('js/post/*.js', output='gen/post_packed.js'))
assets.register('styles', Bundle('sass/*.sass', filters='libsass', output='gen/styles.css'))
# Error handlers, if the error is not a HTTP error, return 500
@app.errorhandler(Exception)