aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/policies/js_templates
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-07 12:02:53 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-07 12:02:53 +0200
commitc5073d9e7d68449bb9aba2791b8a9b3f4d707362 (patch)
tree21e31ca818cef077d27c63d1bf32855eab46bda9 /src/hydrilla/proxy/policies/js_templates
parent2e5b690e84fd168ba169c17581f59b8e1d1f430e (diff)
downloadhaketilo-hydrilla-c5073d9e7d68449bb9aba2791b8a9b3f4d707362.tar.gz
haketilo-hydrilla-c5073d9e7d68449bb9aba2791b8a9b3f4d707362.zip
[proxy] make Haketilo version accessible to payload scripts
Diffstat (limited to 'src/hydrilla/proxy/policies/js_templates')
-rw-r--r--src/hydrilla/proxy/policies/js_templates/page_init_script.js.jinja3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hydrilla/proxy/policies/js_templates/page_init_script.js.jinja b/src/hydrilla/proxy/policies/js_templates/page_init_script.js.jinja
index 3a8382c..629b008 100644
--- a/src/hydrilla/proxy/policies/js_templates/page_init_script.js.jinja
+++ b/src/hydrilla/proxy/policies/js_templates/page_init_script.js.jinja
@@ -65,6 +65,9 @@ code in a proprietary program, I am not going to enforce this in court.
}
const unique_token = decode_jinja("{{ unique_token_encoded }}");
const assets_base_url = decode_jinja("{{ assets_base_url_encoded }}");
+ window.haketilo_version = JSON.parse(
+ decode_jinja("{{ haketilo_version }}")
+ );
/* Make it possible to serialize an Error object. */
function error_data_jsonifiable(error) {