diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2018-12-24 13:25:56 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-01-22 11:37:48 +0300 |
commit | 44ae410a80a180f89044f172791c701053bdb064 (patch) | |
tree | d6e4eceb64e337a4be7b12d5e6c4316a12abe874 /app/views/layouts | |
parent | 9cce812af9e409d83f3c50b9453f3cd63bcfbe71 (diff) |
Add `client` to gl object for browser and platform flags
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/_init_client_detection_flags.html.haml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/layouts/_init_client_detection_flags.html.haml b/app/views/layouts/_init_client_detection_flags.html.haml new file mode 100644 index 00000000000..c729f8aa696 --- /dev/null +++ b/app/views/layouts/_init_client_detection_flags.html.haml @@ -0,0 +1,7 @@ +- client = client_js_flags + +- if client + -# haml-lint:disable InlineJavaScript + :javascript + gl = window.gl || {}; + gl.client = #{client.to_json}; |