aboutsummaryrefslogtreecommitdiff
path: root/src/content/components/common/follow.js
diff options
context:
space:
mode:
authorMagnus Bergmark <magnus.bergmark@gmail.com>2018-07-16 13:04:26 +0200
committerMagnus Bergmark <magnus.bergmark@gmail.com>2018-07-16 13:04:26 +0200
commitb45ffea6a45de911710eb9868596987e27b5c707 (patch)
tree934ea61195edc53346869fda456fa259a9df0262 /src/content/components/common/follow.js
parent84a9655bb39e5902b417e124a0eb23d80808a6a7 (diff)
Allow following <summary> elements
Diffstat (limited to 'src/content/components/common/follow.js')
-rw-r--r--src/content/components/common/follow.js3
1 files changed, 2 insertions, 1 deletions
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)) {