Skip to content

Commit

Permalink
fix: mf-6051 twitter detection (#11424)
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Feb 22, 2024
1 parent 5d30a0d commit 54db083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/injected-script/main/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function sendEvent<T extends keyof InternalEvents>(event: T, ...args: Int
export function isTwitter() {
const url = new $.URL(window.location.href)
const origin = $.URL_origin(url)
return origin === 'twitter.com' || $.StringEndsWith(origin, '.twitter.com')
return origin === 'https://twitter.com' || $.StringEndsWith(origin, '.twitter.com')
}

export function noop() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function AutoPasteFailedDialog(props: AutoPasteFailedDialogProps) {
</DialogTitle>
</nav>
<DialogContent sx={{ paddingTop: 0 }}>
<DialogContentText>
<DialogContentText component="div">
<Typography color="textPrimary" sx={{ marginBottom: 1 }}>
{t.auto_paste_failed_dialog_content()}
</Typography>
Expand Down

0 comments on commit 54db083

Please sign in to comment.