mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
feat: +assetBaseUrl, -l10BaseUrl, -requireBaseUrl
Additional base URLs were necessary for benchpress and translator, and in order to not clutter the API response with needless one- time use base URLs, I decided to use a single base that is used by all of the services, assetBaseUrl.
This commit is contained in:
@@ -328,7 +328,7 @@ $(document).ready(function () {
|
||||
};
|
||||
|
||||
ajaxify.loadTemplate = function (template, callback) {
|
||||
require([config.relative_path + '/assets/templates/' + template + '.js'], callback, function (err) {
|
||||
require([config.assetBaseUrl + '/templates/' + template + '.js'], callback, function (err) {
|
||||
console.error('Unable to load template: ' + template);
|
||||
throw err;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user