mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
fixup! chore: add precommit hook for testing code style (#1448)
This commit is contained in:
parent
be219ddee0
commit
017fa1cf1e
1 changed files with 1 additions and 2 deletions
|
@ -435,8 +435,7 @@ function Inspector(controller) {
|
||||||
if (!str) {
|
if (!str) {
|
||||||
str = none;
|
str = none;
|
||||||
}
|
}
|
||||||
const uri = new URL(str);
|
if (str.startsWith('https://') || str.startsWith('http://')) {
|
||||||
if (uri.protocol == 'http:' || uri.protocol == 'https:') {
|
|
||||||
str = encodeURI(str);
|
str = encodeURI(str);
|
||||||
setInnerHTML(e.comment_lb, '<a href="' + str + '" target="_blank" >' + str + '</a>');
|
setInnerHTML(e.comment_lb, '<a href="' + str + '" target="_blank" >' + str + '</a>');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue