summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-05-10 21:21:15 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-05-10 21:21:15 +0200
commitca350bb974e5ce843e92c6d22d81fc51dcdd94ad (patch)
tree03fb90ee8844429997bbcc8c4978bcd13734decb /docs
parent47ef2acea37313b7b3ebd53e4350eb720e282757 (diff)
fix plugin tutorial
Diffstat (limited to 'docs')
-rw-r--r--docs/developer/Plugins.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/developer/Plugins.md b/docs/developer/Plugins.md
index 22d29efa7..3071b1066 100644
--- a/docs/developer/Plugins.md
+++ b/docs/developer/Plugins.md
@@ -129,6 +129,7 @@ News.addArticleAction(function($actionsElement, article) {
$button.click(function (event) {
window.open(url);
+ window.opener = null; // prevent twitter being from able to access the DOM
event.stopPropagation(); // prevent expanding in compact mode
});