fix: 창 닫기가 필요한 창은 window.open으로 열어야함

This commit is contained in:
2021-10-14 01:12:21 +09:00
parent 49fcfa61f2
commit 50387cdbf5
4 changed files with 43 additions and 30 deletions
+13
View File
@@ -192,6 +192,19 @@ $(function ($) {
return false;
})
$('.open-window').on('click', function(e){
e.preventDefault();
let target = $(e.target as HTMLAnchorElement);
while(target.attr('href') === undefined){
target = target.parent('a');
if(target.length == 0){
return;
}
}
const href = target.attr('href');
window.open(href);
});
setInterval(myclock, 500);
reloadCommandList();
activateFlip();