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/preview-hidden-comments.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/preview-hidden-comments.tsx')
-rw-r--r-- | source/features/preview-hidden-comments.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/preview-hidden-comments.tsx b/source/features/preview-hidden-comments.tsx index dd2c6cc7..ae89e98e 100644 --- a/source/features/preview-hidden-comments.tsx +++ b/source/features/preview-hidden-comments.tsx @@ -1,6 +1,6 @@ import './preview-hidden-comments.css'; import React from 'dom-chef'; -import select from 'select-dom'; +import {$} from 'select-dom'; import * as pageDetect from 'github-url-detection'; import features from '../feature-manager.js'; @@ -11,7 +11,7 @@ function preview(hiddenCommentHeader: HTMLElement): void { const details = hiddenCommentHeader.closest('details')!; details.classList.add('rgh-preview-hidden-comments'); // Used in CSS - const comment = select('.comment-body', details)!; + const comment = $('.comment-body', details)!; const commentText = comment.textContent.trim(); if (commentText.length === 0) { return; |