Skip to content

Commit 60e169e

Browse files
committed
Update redirect.html
1 parent a19bdb3 commit 60e169e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redirect.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@
126126
|| toURL === 'dev.codeit.codes') {
127127

128128
title.innerText = url.get('text');
129-
button.onclick = 'window.open('+ url.get('to') +', "_blank")';
129+
130+
button.addEventListener(() => {
131+
window.open(url.get('to'), '_blank');
132+
});
130133

131134
} else {
132135

0 commit comments

Comments
 (0)