Skip to content

Commit fd5527f

Browse files
committed
Adding target=_blank to links in the bubbles on page reload
1 parent 799b1d3 commit fd5527f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/static/js/bubble.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function bubbles(endpoint, history, callback=undefined){
99
$( "#conversation" ).append('<div class="bubble bubble-left">' + converter.makeHtml(value.content) + '</div>');
1010
});
1111
scroll();
12+
$('.bubble-left a').attr('target', '_blank');
1213

1314
$("#chat").click(function(e){
1415
e.preventDefault();
@@ -50,7 +51,7 @@ function bubbles(endpoint, history, callback=undefined){
5051
}
5152
},
5253
success: function(data) {
53-
$('.bubble-left a').attr('target', '_blank');
54+
bubble.find('a').attr('target', '_blank');
5455
etfl = Date.now() - now;
5556
bubble.attr('data-etfl', etfl);
5657
bubble.attr('data-ttft', ttft);

0 commit comments

Comments
 (0)