mirror of https://github.com/zulip/zulip.git
page_params: Throw an error if params are missing.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
dea6889956
commit
6b09e690f1
|
@ -1 +1,4 @@
|
|||
window.page_params = $("#page-params").remove().data("params");
|
||||
if (!window.page_params) {
|
||||
throw new Error("Missing page-params");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue