@class101/cdn-ui-system 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,9 @@ import {
|
|
5
5
|
// libs/shared/utils-string/src/lib/convertToSecureUrl/convertToSecureUrl.ts
|
6
6
|
init_react_shim();
|
7
7
|
function convertToSecureUrl(url) {
|
8
|
+
if (!url.startsWith("http")) {
|
9
|
+
return `https://${url}`;
|
10
|
+
}
|
8
11
|
return url.replace(/^https?:\/\//i, "https://");
|
9
12
|
}
|
10
13
|
|