mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
static: Make debug_mode for default_page_params follow the setting.
For pages that don't have page_params, the default_page_params now ensures that debug_mode will correctly follow settings.DEBUG. This allows blueslip exception popups to work on portico pages for development environment. Fixes: #17540.
This commit is contained in:
@@ -16,7 +16,7 @@ def environment(**options: Any) -> Environment:
|
||||
env = Environment(**options)
|
||||
env.globals.update(
|
||||
default_page_params={
|
||||
"debug_mode": False,
|
||||
"debug_mode": settings.DEBUG,
|
||||
"webpack_public_path": staticfiles_storage.url(
|
||||
settings.WEBPACK_LOADER["DEFAULT"]["BUNDLE_DIR_NAME"],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user