Skip to content

Commit b8085a5

Browse files
committed
Update redirect.html
1 parent 80efc6d commit b8085a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

redirect.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,13 @@
128128
title.innerText = url.get('text');
129129

130130
button.addEventListener('click', () => {
131-
window.open(url.get('to'), '_blank');
131+
132+
if (top != window) {
133+
window.open(url.get('to'), '_blank');
134+
} else {
135+
window.location.href = url.get('to');
136+
}
137+
132138
});
133139

134140
} else {

0 commit comments

Comments
 (0)