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:
Julian Lam
2020-08-10 10:22:47 -04:00
parent 75ef4bbe34
commit 9adaccd036
4 changed files with 6 additions and 7 deletions

View File

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