From ca350bb974e5ce843e92c6d22d81fc51dcdd94ad Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 10 May 2016 21:21:15 +0200 Subject: fix plugin tutorial --- docs/developer/Plugins.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') 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 }); -- cgit v1.2.3