popupOpenArticle: don't cause an exception if popups are blocked

This commit is contained in:
Andrew Dolgov 2018-12-07 22:07:13 +03:00
parent 6e30af755c
commit c31ae870c9
1 changed files with 4 additions and 2 deletions

View File

@ -326,6 +326,8 @@ function popupOpenArticle(id) {
"ttrss_article_popup",
"height=900,width=900,resizable=yes,status=no,location=no,menubar=no,directories=no,scrollbars=yes,toolbar=no");
w.opener = null;
w.location = "backend.php?op=article&method=view&mode=raw&html=1&zoom=1&id=" + id + "&csrf_token=" + App.getInitParam("csrf_token");
if (w) {
w.opener = null;
w.location = "backend.php?op=article&method=view&mode=raw&html=1&zoom=1&id=" + id + "&csrf_token=" + App.getInitParam("csrf_token");
}
}