diff options
author | 2023-11-01 12:24:19 +0800 | |
---|---|---|
committer | 2023-11-01 04:24:19 +0000 | |
commit | ae6ca57b45b4e4ad201793b8dc7f3535c43de976 (patch) | |
tree | 679608ff74b842731d0a1ce8591d2c17dd727010 /source/features/warning-for-disallow-edits.tsx | |
parent | 4a9e021202ceb76962d08d70ecab2ec9becab8d9 (diff) | |
download | refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.tar.gz refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.tar.zst refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.zip |
Meta: Use new `select-dom` API (#6992)
Diffstat (limited to 'source/features/warning-for-disallow-edits.tsx')
-rw-r--r-- | source/features/warning-for-disallow-edits.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/warning-for-disallow-edits.tsx b/source/features/warning-for-disallow-edits.tsx index 6aba8e1b..5d598af5 100644 --- a/source/features/warning-for-disallow-edits.tsx +++ b/source/features/warning-for-disallow-edits.tsx @@ -1,6 +1,6 @@ import './warning-for-disallow-edits.css'; import React from 'dom-chef'; -import select from 'select-dom'; +import {$} from 'select-dom'; import onetime from 'onetime'; import * as pageDetect from 'github-url-detection'; import delegate, {DelegateEvent} from 'delegate-it'; @@ -33,7 +33,7 @@ function toggleHandler(event: DelegateEvent<Event, HTMLInputElement>): void { } function init(signal: AbortSignal): void | false { - const checkbox = select('input[name="collab_privs"]'); + const checkbox = $('input[name="collab_privs"]'); if (!checkbox) { return false; } |