Skip to content

Commit b4ad72f

Browse files
Merge pull request #1453 from leandrowilliam/fix/open-in-new-tab-button
Fix: Update iframe selector to use 'preview-iframe' class
2 parents 9d0d779 + 2c2b1cf commit b4ad72f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/registry/views/static/info.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ oc.cmd.push(function() {
2525
url += splitted[1];
2626
}
2727
28-
$('.preview').attr('src', url);
28+
$('.preview-iframe').attr('src', url);
2929
3030
return false;
3131
};
@@ -95,7 +95,7 @@ oc.cmd.push(function() {
9595
9696
$('.open-preview').click(function() {
9797
refreshPreview();
98-
var url = $('.preview').attr('src');
98+
var url = $('.preview-iframe').attr('src');
9999
100100
window.open(url, '_blank');
101101
return false;

0 commit comments

Comments
 (0)