Skip to content

Commit

Permalink
ポップアップブロック回避のため、別タブで開くように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
juddydev authored Aug 16, 2023
1 parent 86b2707 commit e38a249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascript/aipictors_uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ function openPopup(extension,base64Data) {
let url = ""
if(extension === null){url = pictors_url}
else{url = pictors_url + "#image/" + extension + ";base64," + base64Data}
window.open(url, "_blank", `width=${window_width},height=${window_height},left=${window_pos_x},top=${window_pos_y}`)
//window.open(url, "_blank", `width=${window_width},height=${window_height},left=${window_pos_x},top=${window_pos_y}`)
//ポップアップブロック回避のため、別タブで開く
window.open(url)
}

function noImgAlert(){
Expand Down

0 comments on commit e38a249

Please sign in to comment.