@social-mail/social-mail-client 1.8.276 → 1.8.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/CDN.d.ts.map +1 -1
- package/dist/common/CDN.js +6 -4
- package/dist/common/CDN.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.js +6 -4
- package/dist/public/channel/ChannelApp.pack.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +6 -4
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/common/CDN.ts +10 -5
|
@@ -57495,12 +57495,14 @@ System.register([], function (_export, _context) {
|
|
|
57495
57495
|
setters: [],
|
|
57496
57496
|
execute: function () {
|
|
57497
57497
|
cdn = (_b = (_a = window.socialMail) === null || _a === void 0 ? void 0 : _a.cdn) !== null && _b !== void 0 ? _b : "";
|
|
57498
|
-
if (cdn) {
|
|
57499
|
-
cdn = "https://" + cdn;
|
|
57500
|
-
}
|
|
57501
57498
|
_export("CDN", CDN = {
|
|
57502
57499
|
toCDNUrl(url) {
|
|
57503
|
-
|
|
57500
|
+
if (/^https?\:\/\//i.test(url)) {
|
|
57501
|
+
const u = new URL(url);
|
|
57502
|
+
u.hostname = cdn;
|
|
57503
|
+
return u.toString();
|
|
57504
|
+
}
|
|
57505
|
+
return "https://" + cdn + url;
|
|
57504
57506
|
}
|
|
57505
57507
|
});
|
|
57506
57508
|
}
|