summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-03 14:21:50 +0300
committerAndrew Dolgov <[email protected]>2018-12-03 14:21:50 +0300
commite76d1fb995e25d78f0131ac56660846b0e9ecb9a (patch)
treeb0815fcc07c7eea917ac5aaddc53c38ee857e848 /js/tt-rss.js
parent71fc6d45bd761a9d2715faa68f2b8c0271ee7169 (diff)
plugins: mail, mailto: remove code from global context
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 8931e9860..fc87ae24d 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -302,12 +302,10 @@ require(["dojo/_base/kernel",
}
};
this.hotkey_actions["email_article"] = function () {
- if (typeof emailArticle != "undefined") {
- emailArticle();
- } else if (typeof mailtoArticle != "undefined") {
- mailtoArticle();
+ if (typeof Plugins.Mail != "undefined") {
+ Plugins.Mail.onHotkey(Headlines.getSelected());
} else {
- alert(__("Please enable mail plugin first."));
+ alert(__("Please enable mail or mailto plugin first."));
}
};
this.hotkey_actions["select_all"] = function () {