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 {
121121 return url . startsWith ( '/' ) && ! isProtocolRelativeUrl ( url ) ;
122122}
123123
124- export function ensureUrlProtocol ( url : string ) : string {
125- if ( isProtocolRelativeUrl ( url ) ) {
126- return 'https:' + url ;
127- }
128- return url ;
129- }
130-
131124export function isCdnUrl ( url : string , cdnDomain : string ) : boolean {
132125 if ( isRelativeUrl ( url ) ) {
133126 return false ;
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ import {
1919 mergeParams ,
2020 parseUserParamsString ,
2121 trimTrailingSlash ,
22- isRelativeUrl ,
23- ensureUrlProtocol
22+ isRelativeUrl
2423} from './helpers' ;
2524
2625export function uploadcareLoader ( {
@@ -45,7 +44,6 @@ export function uploadcareLoader({
4544 process . env . NEXT_PUBLIC_UPLOADCARE_APP_BASE_URL || ''
4645 ) ;
4746
48- src = ensureUrlProtocol ( src ) ;
4947 const proxy = trimTrailingSlash ( proxyEndpoint ) ;
5048 const isProductionMode = isProduction ( ) ;
5149 const isImageOnCdn = isCdnUrl ( src , cdnDomain ) ;
You can’t perform that action at this time.
0 commit comments