Files
zulip/static/js/page_params.js
Anders Kaseorg 7494f1600c templates: Move page_params from an inline script to the <body> dataset.
This sidesteps tricky escaping issues, and will make it easier to
build a strict Content-Security-Policy.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-09-17 16:06:33 -07:00

3 lines
98 B
JavaScript

window.page_params = $(document.body).data("params");
$(document.body).removeAttr("data-params");