diff options
author | 2023-11-09 19:22:34 +0800 | |
---|---|---|
committer | 2023-11-09 19:22:34 +0800 | |
commit | bccc37b757e87ef9c3def6fbb5786ed174600ed8 (patch) | |
tree | 0fccfdac0bdb00a46ccf937316de52cc78d3d848 /source/features/collapsible-content-button.tsx | |
parent | 831e9a9159d9f7ab94b543f606e94f30609291ea (diff) | |
download | refined-github-bccc37b757e87ef9c3def6fbb5786ed174600ed8.tar.gz refined-github-bccc37b757e87ef9c3def6fbb5786ed174600ed8.tar.zst refined-github-bccc37b757e87ef9c3def6fbb5786ed174600ed8.zip |
`table-input`/`collapsible-content-button` - Silence Firefox (#7042)
Diffstat (limited to 'source/features/collapsible-content-button.tsx')
-rw-r--r-- | source/features/collapsible-content-button.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/features/collapsible-content-button.tsx b/source/features/collapsible-content-button.tsx index dd2a8940..80730332 100644 --- a/source/features/collapsible-content-button.tsx +++ b/source/features/collapsible-content-button.tsx @@ -8,6 +8,7 @@ import {elementExists} from 'select-dom'; import features from '../feature-manager.js'; import smartBlockWrap from '../helpers/smart-block-wrap.js'; import observe from '../helpers/selector-observer.js'; +import {isHasSelectorSupported} from '../helpers/select-has.js'; function addContentToDetails({delegateTarget}: DelegateEvent<MouseEvent, HTMLButtonElement>): void { /* There's only one rich-text editor even when multiple fields are visible; the class targets it #5303 */ @@ -73,6 +74,9 @@ function init(signal: AbortSignal): void { } void features.add(import.meta.url, { + asLongAs: [ + isHasSelectorSupported, + ], include: [ pageDetect.hasRichTextEditor, ], |