replace double slashs
This commit is contained in:
parent
c23fa663cc
commit
05dca20e8d
|
@ -38,7 +38,7 @@ const appSchemeURL = (url: string, browser: string): string => {
|
|||
|
||||
const addProtocol = (url: string): string => {
|
||||
if (!url.toLowerCase().startsWith('http')) {
|
||||
return `https://${url}`;
|
||||
return `https://${url.replace('//', '')}`;
|
||||
}
|
||||
return url;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue