summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-07 22:07:13 +0300
committerAndrew Dolgov <[email protected]>2018-12-07 22:07:13 +0300
commitc31ae870c94dfa945f6af779a35b12f1c3e3996e (patch)
tree69778206a58bfacdeec0dedba8cdc2ebcad02bca /js/common.js
parent6e30af755cff7dce37b92740251af42353473a45 (diff)
popupOpenArticle: don't cause an exception if popups are blocked
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js6
1 files changed, 4 insertions, 2 deletions
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");
+ }
}