File tree Expand file tree Collapse file tree 3 files changed +1
-26
lines changed Expand file tree Collapse file tree 3 files changed +1
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -121,13 +121,6 @@ export function isRelativeUrl(url: string): boolean {
121
121
return url . startsWith ( '/' ) && ! isProtocolRelativeUrl ( url ) ;
122
122
}
123
123
124
- export function ensureUrlProtocol ( url : string ) : string {
125
- if ( isProtocolRelativeUrl ( url ) ) {
126
- return 'https:' + url ;
127
- }
128
- return url ;
129
- }
130
-
131
124
export function isCdnUrl ( url : string , cdnDomain : string ) : boolean {
132
125
if ( isRelativeUrl ( url ) ) {
133
126
return false ;
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ import {
19
19
mergeParams ,
20
20
parseUserParamsString ,
21
21
trimTrailingSlash ,
22
- isRelativeUrl ,
23
- ensureUrlProtocol
22
+ isRelativeUrl
24
23
} from './helpers' ;
25
24
26
25
export function uploadcareLoader ( {
@@ -45,7 +44,6 @@ export function uploadcareLoader({
45
44
process . env . NEXT_PUBLIC_UPLOADCARE_APP_BASE_URL || ''
46
45
) ;
47
46
48
- src = ensureUrlProtocol ( src ) ;
49
47
const proxy = trimTrailingSlash ( proxyEndpoint ) ;
50
48
const isProductionMode = isProduction ( ) ;
51
49
const isImageOnCdn = isCdnUrl ( src , cdnDomain ) ;
You can’t perform that action at this time.
0 commit comments