Merge pull request #2007 from overleaf/bg-enable-doc-hash-checking-for-all-users

enable doc hash checking for all users

GitOrigin-RevId: 9f26580bf21791669361cc84ca2fa561b1bb3f50
This commit is contained in:
Simon Detheridge 2019-07-25 12:03:03 +01:00 committed by sharelatex
parent 90b1c4a23c
commit 3b3e9e79fa

View file

@ -181,9 +181,9 @@ block requirejs
window.aceWorkerPath = "#{aceWorkerPath}";
window.pdfCMapsPath = "#{pdfCMapsPath}"
window.uiConfig = JSON.parse('!{StringHelper.stringifyJsonForScript(uiConfig)}');
//- enable doc hash checking for projects created after 2019-06-09
//- this is for a staged rollout, eventually we will turn this on for all projects
window.useShareJsHash = (window.project_id > "5cfd8f700000000000000000")
//- enable doc hash checking for all projects
//- used in public/js/libs/sharejs.js
window.useShareJsHash = true
- if (settings.overleaf != null)
script(type='text/javascript').