Skip to content

Commit

Permalink
add typoreporter
Browse files Browse the repository at this point in the history
  • Loading branch information
fey committed Sep 13, 2023
1 parent 90481aa commit f61db2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ html.h-100 lang="#{I18n.locale}"
= render 'layouts/shared/last_answers'

= render 'layouts/shared/footer'
- if Rails.env.production?
= render 'layouts/deps/typos'
6 changes: 6 additions & 0 deletions app/views/layouts/deps/_typos.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
script src="https://cdn.jsdelivr.net/gh/hexlet/hexlet-correction@main/src/widget/index.js"
javascript:
handleTypoReporter({
authorizationToken: 'MzYyOmYzOTFhMjU1LTgzNWMtNDE0OS1iMDU5LWE2OWEzMWNjNTFkMg==',
workSpaceUrl: "https://hexlet-correction.herokuapp.com", workSpaceId: "362"
});

0 comments on commit f61db2f

Please sign in to comment.