diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-29 13:25:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-29 13:25:47 +0900 |
commit | 85e9b9da3714c0fa2998b0fab8f2a01c49d84d5a (patch) | |
tree | eeb6d1b4c489cc179520d852e577b7e7ece747af /src/content/components/common/follow.js | |
parent | af90ef59566210fa8715816d639ae1025f2aa2fb (diff) | |
parent | b45ffea6a45de911710eb9868596987e27b5c707 (diff) |
Merge pull request #432 from Mange/follow-details-summary
Allow following <summary> elements
Diffstat (limited to 'src/content/components/common/follow.js')
-rw-r--r-- | src/content/components/common/follow.js | 3 |
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)) { |