Skip to content

Commit 610ce8a

Browse files
committed
Merge pull request philc#941 from lyallh/shortenUrl-https-fix
Also crop https:// off displayed url suggestions (currently only http:// cropped)
2 parents 6708dda + e62a732 commit 610ce8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

background_scripts/completion.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Suggestion
4040
</div>
4141
"""
4242

43-
shortenUrl: (url) -> @stripTrailingSlash(url).replace(/^http:\/\//, "")
43+
shortenUrl: (url) -> @stripTrailingSlash(url).replace(/^https?:\/\//, "")
4444

4545
stripTrailingSlash: (url) ->
4646
url = url.substring(url, url.length - 1) if url[url.length - 1] == "/"

0 commit comments

Comments
 (0)