mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
fixup! chore: add precommit hook for testing code style (#1448)
This commit is contained in:
@@ -435,8 +435,7 @@ function Inspector(controller) {
|
||||
if (!str) {
|
||||
str = none;
|
||||
}
|
||||
const uri = new URL(str);
|
||||
if (uri.protocol == 'http:' || uri.protocol == 'https:') {
|
||||
if (str.startsWith('https://') || str.startsWith('http://')) {
|
||||
str = encodeURI(str);
|
||||
setInnerHTML(e.comment_lb, '<a href="' + str + '" target="_blank" >' + str + '</a>');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user