Skip to content

Commit

Permalink
Merge pull request #600 from hogashi/fix-domain
Browse files Browse the repository at this point in the history
forgot to send option save event to new tweetdeck domain
  • Loading branch information
hogashi authored Nov 28, 2023
2 parents 3b65278 + 6908c30 commit 633d092
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/extension-contexts/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { ChangeEvent, useCallback, useState } from 'react';
import ReactDOM from 'react-dom';
import {
HOST_MOBILE_TWITTER_COM,
HOST_PRO_TWITTER_COM,
HOST_TWEETDECK_TWITTER_COM,
HOST_TWITTER_COM,
OPTIONS_TEXT,
Expand Down Expand Up @@ -53,7 +54,11 @@ export const Popup = (props: Props): JSX.Element => {
return;
}
const tabUrl = new URL(tab.url).hostname;
if (![HOST_TWITTER_COM, HOST_MOBILE_TWITTER_COM, HOST_TWEETDECK_TWITTER_COM].some((url) => url === tabUrl)) {
if (
![HOST_TWITTER_COM, HOST_MOBILE_TWITTER_COM, HOST_TWEETDECK_TWITTER_COM, HOST_PRO_TWITTER_COM].some(
(url) => url === tabUrl,
)
) {
// 送り先タブが拡張機能が動作する対象ではないならメッセージを送らない
return;
}
Expand Down

0 comments on commit 633d092

Please sign in to comment.