Explorar el Código

Use http as default for short links

Pouria Ezzati hace 8 años
padre
commit
ddea93bfb7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/components/Shortener/ShortenerResult.js

+ 1 - 1
client/components/Shortener/ShortenerResult.js

@@ -50,7 +50,7 @@ const ShortenerResult = ({ copyHandler, isCopied, loading, url }) =>
     <Wrapper>
       {isCopied && <CopyMessage>Copied to clipboard.</CopyMessage>}
       <CopyToClipboard text={url.list[0].shortUrl} onCopy={copyHandler}>
-        <Url>{url.list[0].shortUrl.replace(/^https?:\/\//, '')}</Url>
+        <Url>{url.list[0].shortUrl.replace(/^http?:\/\//, '')}</Url>
       </CopyToClipboard>
       <CopyToClipboard text={url.list[0].shortUrl} onCopy={copyHandler}>
         <Button icon="copy">Copy</Button>