Repository URL to install this package:
|
Version:
1.1.3 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var UrlSettings = /** @class */ (function () {
function UrlSettings(guiUrl, iconUrl, composedUrl, readmoreContentUrl, summaryContentUrl) {
this.guiUrl = this.fixUrl(guiUrl);
this.iconUrl = this.fixUrl(iconUrl);
this.composedUrl = this.fixUrl(composedUrl);
this.readmoreContentUrl = this.fixUrl(readmoreContentUrl);
this.summaryContentUrl = this.fixUrl(summaryContentUrl);
}
UrlSettings.prototype.fixUrl = function (url) {
url = url.replace('http:', 'https:');
return this.enforceEndSlash(url);
};
UrlSettings.prototype.enforceEndSlash = function (url) {
if (url.length > 0 && url[url.length - 1] === '/') {
return url;
}
return url + '/';
};
return UrlSettings;
}());
exports.UrlSettings = UrlSettings;
exports.default = UrlSettings;
//# sourceMappingURL=urlSettings.js.map