Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

overlays: Use `close_overlay` to close overlays!

Aman Agrawalea9992d85389
diff --git a/web/src/overlays.ts b/web/src/overlays.ts
index bdad57d7705..8b5a1ddea5d 100644
--- a/web/src/overlays.ts
+++ b/web/src/overlays.ts
@@ -385,9 +385,8 @@ export function close_active_modal(): void {
}
export function close_for_hash_change(): void {
- $("div.overlay.show").removeClass("show");
- if (active_overlay) {
- active_overlay.close_handler();
+ if (open_overlay_name) {
+ close_overlay(open_overlay_name);
}
}