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/github-actions-indicators.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/github-actions-indicators.tsx')
-rw-r--r-- | source/features/github-actions-indicators.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/github-actions-indicators.tsx b/source/features/github-actions-indicators.tsx index 8d6e2e57..e3ae4034 100644 --- a/source/features/github-actions-indicators.tsx +++ b/source/features/github-actions-indicators.tsx @@ -1,6 +1,6 @@ import {CachedFunction} from 'webext-storage-cache'; import React from 'dom-chef'; -import select from 'select-dom'; +import {$, elementExists} from 'select-dom'; import {StopIcon, PlayIcon} from '@primer/octicons-react'; import {parseCron} from '@cheap-glitch/mi-cron'; import * as pageDetect from 'github-url-detection'; @@ -90,7 +90,7 @@ const workflowDetails = new CachedFunction('workflows-details', { async function addIndicators(workflowListItem: HTMLAnchorElement): Promise<void> { // There might be a disabled indicator already - if (select.exists('.octicon-stop', workflowListItem)) { + if (elementExists('.octicon-stop', workflowListItem)) { return; } @@ -125,7 +125,7 @@ async function addIndicators(workflowListItem: HTMLAnchorElement): Promise<void> } const relativeTime = <relative-time datetime={String(nextTime)}/>; - select('.ActionList-item-label', workflowListItem)!.append( + $('.ActionList-item-label', workflowListItem)!.append( <em> ({relativeTime}) </em>, |