Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 3, 2024
1 parent 94fddae commit 34937d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/javascript/mastodon/components/status_action_bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ class StatusActionBar extends ImmutablePureComponent {
title: 'Tip',
address: raw_address.value,
strings: { account: `@${response.data.acct}` },
cancel: () => window.location.reload()
// cancel: () => window.location.reload()
})

Check failure on line 159 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
return

Check failure on line 160 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Arrow function expected a return value

Check failure on line 160 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
// return window.location.href = `nano:${raw_address.value}`;
}

if (nano_to_name) {
api().get('/api/v1/streaming/nano_known').then(known => {

Check failure on line 165 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 8 spaces but found 10
// console.log( "response.data", response.data )
console.log( "response.data", response.data )

Check failure on line 166 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 10 spaces but found 12

Check warning on line 166 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check failure on line 166 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
var name = nano_to_name.value.match(/href="([^"]*)"/)[1]
name = name.replace('https://', '').replace('http://', '')
name = name.split('/')[1]
Expand All @@ -173,7 +173,7 @@ class StatusActionBar extends ImmutablePureComponent {
title: 'Tip',
address: account.address,
strings: { account: `@${response.data.acct}` },
cancel: () => window.location.reload()
// cancel: () => window.location.reload()
})
return
// return window.location.href = `nano:${account.address}`
Expand Down

0 comments on commit 34937d6

Please sign in to comment.