Longer shortened URLs
parent
ba837ad9af
commit
b4a8da4c27
|
@ -189,8 +189,8 @@ export function toShortUrl(url: string): string {
|
||||||
(urlp.pathname === '/' ? '' : urlp.pathname) +
|
(urlp.pathname === '/' ? '' : urlp.pathname) +
|
||||||
urlp.search +
|
urlp.search +
|
||||||
urlp.hash
|
urlp.hash
|
||||||
if (shortened.length > 20) {
|
if (shortened.length > 30) {
|
||||||
return shortened.slice(0, 17) + '...'
|
return shortened.slice(0, 27) + '...'
|
||||||
}
|
}
|
||||||
return shortened
|
return shortened
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue