replace double slashs

This commit is contained in:
Reinaldo Neto 2023-02-08 19:39:22 -03:00
parent c23fa663cc
commit 05dca20e8d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ const appSchemeURL = (url: string, browser: string): string => {
const addProtocol = (url: string): string => { const addProtocol = (url: string): string => {
if (!url.toLowerCase().startsWith('http')) { if (!url.toLowerCase().startsWith('http')) {
return `https://${url}`; return `https://${url.replace('//', '')}`;
} }
return url; return url;
}; };