From ae6ca57b45b4e4ad201793b8dc7f3535c43de976 Mon Sep 17 00:00:00 2001
From: Federico Brigante <me@fregante.com>
Date: Wed, 1 Nov 2023 12:24:19 +0800
Subject: Meta: Use new `select-dom` API (#6992)

---
 source/features/github-actions-indicators.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'source/features/github-actions-indicators.tsx')

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>,
-- 
cgit v1.2.3

