From b25bf97cad3015ab8a0c828af9a75c7d129a42c9 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 18 Nov 2016 20:07:58 +0100 Subject: [PATCH] Add language to UI js as paramter to avoid cache --- src/Ui/UiRequest.py | 1 + src/Ui/template/wrapper.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ui/UiRequest.py b/src/Ui/UiRequest.py index 28191073..046e55c6 100644 --- a/src/Ui/UiRequest.py +++ b/src/Ui/UiRequest.py @@ -286,6 +286,7 @@ class UiRequest(object): show_loadingscreen=json.dumps(not site.storage.isFile(file_inner_path)), sandbox_permissions=sandbox_permissions, rev=config.rev, + lang=config.language, homepage=homepage ) diff --git a/src/Ui/template/wrapper.html b/src/Ui/template/wrapper.html index 2a61eba2..443723d2 100644 --- a/src/Ui/template/wrapper.html +++ b/src/Ui/template/wrapper.html @@ -73,7 +73,7 @@ server_url = '{server_url}' if (typeof WebSocket === "undefined") document.body.innerHTML += "
Your browser is not supported please use Chrome or Firefox.
"; - +