|
|
@@ -106,7 +106,7 @@ block requirejs
|
|
|
//- We need to do .replace(/\//g, '\\/') do that '</script>' -> '<\/script>'
|
|
|
//- and doesn't prematurely end the script tag.
|
|
|
script#data(type="application/json").
|
|
|
- !{JSON.stringify({userSettings: userSettings, user: user, trackChangesState: trackChangesState, useV2History: useV2History}).replace(/\//g, '\\/')}
|
|
|
+ !{JSON.stringify({userSettings: userSettings, user: user, trackChangesState: trackChangesState, useV2History: useV2History, enabledLinkedFileTypes: settings.enabledLinkedFileTypes}).replace(/\//g, '\\/')}
|
|
|
|
|
|
script(type="text/javascript").
|
|
|
window.data = JSON.parse($("#data").text());
|
|
|
@@ -115,6 +115,7 @@ block requirejs
|
|
|
var data = JSON.parse($("#data").text());
|
|
|
window.userSettings = data.userSettings;
|
|
|
window.user = data.user;
|
|
|
+ window.enabledLinkedFiles = data.enabledLinkedFiles;
|
|
|
window.csrfToken = "!{csrfToken}";
|
|
|
window.anonymous = #{anonymous};
|
|
|
window.anonymousAccessToken = "#{anonymousAccessToken}";
|