zulip/static/js/page_params.js

5 lines
137 B
JavaScript

window.page_params = $("#page-params").remove().data("params");
if (!window.page_params) {
throw new Error("Missing page-params");
}