Add language to UI js as paramter to avoid cache

This commit is contained in:
shortcutme 2016-11-18 20:07:58 +01:00
parent 9ff2bfc4bb
commit b25bf97cad
2 changed files with 2 additions and 1 deletions

View File

@ -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
)

View File

@ -73,7 +73,7 @@ server_url = '{server_url}'
if (typeof WebSocket === "undefined")
document.body.innerHTML += "<div class='unsupported'>Your browser is not supported please use <a href='http://outdatedbrowser.com'>Chrome or Firefox</a>.</div>";
</script>
<script type="text/javascript" src="/uimedia/all.js?rev={rev}"></script>
<script type="text/javascript" src="/uimedia/all.js?rev={rev}&lang={lang}"></script>
</body>
</html>