mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
get rid of app.exposeConfigToTemplates
This commit is contained in:
@@ -406,18 +406,6 @@ app.cacheBuster = null;
|
||||
}
|
||||
};
|
||||
|
||||
app.exposeConfigToTemplates = function() {
|
||||
$(document).ready(function() {
|
||||
templates.setGlobal('loggedIn', config.loggedIn);
|
||||
templates.setGlobal('relative_path', RELATIVE_PATH);
|
||||
for(var key in config) {
|
||||
if (config.hasOwnProperty(key)) {
|
||||
templates.setGlobal('config.' + key, config[key]);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function createHeaderTooltips() {
|
||||
var env = utils.findBootstrapEnvironment();
|
||||
if (env === 'xs' || env === 'sm') {
|
||||
@@ -651,8 +639,6 @@ app.cacheBuster = null;
|
||||
|
||||
showWelcomeMessage = window.location.href.indexOf('loggedin') !== -1;
|
||||
|
||||
app.exposeConfigToTemplates();
|
||||
|
||||
socketIOConnect();
|
||||
|
||||
app.cacheBuster = config['cache-buster'];
|
||||
|
||||
Reference in New Issue
Block a user