Skip to content

Commit

Permalink
Merge pull request #259 from dwyl/MikeRund-patch-1
Browse files Browse the repository at this point in the history
Update README.md deprecated event.keycode, hyperlink and windows command #259
  • Loading branch information
nelsonic authored Oct 14, 2024
2 parents 800d3c9 + 336a55b commit 2048dd7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ function render_message(payload) {

// Listen for the [Enter] keypress event to send a message:
msg.addEventListener('keypress', function (event) {
if (event.keyCode == 13 && msg.value.length > 0) { // don't sent empty msg.
if (event.key === `Enter` && msg.value.length > 0) { // don't sent empty msg.
sendMessage()
}
});
Expand Down Expand Up @@ -840,6 +840,10 @@ In your terminal run the following command to create the `messages` table:
```sh
mix ecto.migrate
```

> For _context_ we recommend reading:
[hexdocs.pm/ecto_sql/**Ecto.Migration**.html](https://hexdocs.pm/ecto_sql/Ecto.Migration.html)

You should see the following in your terminal:
```sh
11:42:10.130 [info] == Running 20230203114114 Chat.Repo.Migrations.CreateMessages.change/0 forward
Expand Down Expand Up @@ -1169,6 +1173,10 @@ into your terminal:
```elixir
MIX_ENV=test mix do coveralls.json
```
> For windows use:
> ```elixir
> $env:MIX_ENV="test"; mix do coveralls.json
> ```
You should see: <br />
Expand Down

0 comments on commit 2048dd7

Please sign in to comment.