mirror of
https://github.com/flarum/core.git
synced 2025-07-24 18:21:33 +02:00
Don't redirect to HTML-only mode if in debug mode
This commit is contained in:
@@ -38,7 +38,9 @@
|
||||
|
||||
app.boot();
|
||||
} catch (e) {
|
||||
window.location = window.location + '?nojs=1';
|
||||
@if (! $forum->attributes->debug)
|
||||
window.location = window.location + '?nojs=1';
|
||||
@endif
|
||||
throw e;
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user