Skip to content

Commit

Permalink
re-add nano tips
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 2, 2024
1 parent 8e5752b commit d3e39e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/mastodon/components/status_action_bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class StatusActionBar extends ImmutablePureComponent {

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

Check failure on line 156 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( nano_to_name )

Check failure on line 157 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 157 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 157 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]

Check failure on line 158 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
name = name.replace('https://', '').replace('http://', '')
name = name.split('/')[1]
Expand Down
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

= stylesheet_link_tag custom_css_path, skip_pipeline: true, host: root_url, media: 'all'

%meta{ name: 'Content-Security-Policy', content: "default-src 'self'; script-src 'self' pay.nano.to"}

Check failure on line 41 in app/views/layouts/application.html.haml

View workflow job for this annotation

GitHub Actions / lint

Hash attribute should end with one space before the closing brace or be on its own line

%script{ src: 'https://pay.nano.to/latest.js' }

= yield :header_tags
Expand Down

0 comments on commit d3e39e7

Please sign in to comment.