From c31ae870c94dfa945f6af779a35b12f1c3e3996e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 7 Dec 2018 22:07:13 +0300 Subject: popupOpenArticle: don't cause an exception if popups are blocked --- js/common.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/common.js') diff --git a/js/common.js b/js/common.js index 5b2812be6..00bac636b 100755 --- a/js/common.js +++ b/js/common.js @@ -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"); + } } -- cgit v1.2.3-54-g00ecf