From b45ffea6a45de911710eb9868596987e27b5c707 Mon Sep 17 00:00:00 2001 From: Magnus Bergmark Date: Mon, 16 Jul 2018 13:04:26 +0200 Subject: Allow following elements --- src/content/components/common/follow.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/content/components/common/follow.js') diff --git a/src/content/components/common/follow.js b/src/content/components/common/follow.js index 2a55ea3..63ce603 100644 --- a/src/content/components/common/follow.js +++ b/src/content/components/common/follow.js @@ -5,7 +5,7 @@ import * as dom from 'shared/utils/dom'; const TARGET_SELECTOR = [ 'a', 'button', 'input', 'textarea', 'area', '[contenteditable=true]', '[contenteditable=""]', '[tabindex]', - '[role="button"]' + '[role="button"]', 'summary' ].join(','); @@ -155,6 +155,7 @@ export default class Follow { case 'textarea': return element.focus(); case 'button': + case 'summary': return element.click(); default: if (dom.isContentEditable(element)) { -- cgit v1.2.3