From d0a4ebece6f5757fef5df7fe4fe8c245e77fa6cc Mon Sep 17 00:00:00 2001 From: Shrey Gupta Date: Fri, 24 May 2024 10:50:25 +0300 Subject: [PATCH] fix(slack): Fix toggl button disappeared on channel toolbar --- src/content/slack.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/content/slack.js b/src/content/slack.js index 69ba9a189..43afec965 100644 --- a/src/content/slack.js +++ b/src/content/slack.js @@ -1,11 +1,15 @@ +/** + * @name Slack + * @urlAlias slack.com + * @urlRegex *://*.slack.com/* + */ 'use strict'; -/* global togglbutton, $ */ const getTextContent = (element) => element ? element.textContent.trim() : ''; const getWorkspaceName = () => getTextContent($('.p-ia__sidebar_header__team_name_text')); -togglbutton.render('.p-ia__view_header:not(.toggl)', { observe: true }, (elem) => { +togglbutton.render('.p-view_header:not(.toggl)', { observe: true }, (elem) => { const description = $('[data-qa="channel_name"]'); const isRendered = $('.toggl-button', elem) != null;