Skip to content

Commit

Permalink
Editorial: fix typo (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Jun 6, 2024
1 parent 0b15b86 commit bc1468c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ <h3>
const file = new File([], "some.png", { type: "image/png" });

// Check if files are supported
if (navigates.canShare({files: [file]})) {
if (navigator.canShare({files: [file]})) {
// Sharing a png file would probably be ok...
}

// Check if a URL is ok to share...
if (navigates.canShare({ url: someURL })) {
if (navigator.canShare({ url: someURL })) {
// The URL is valid and can probably be shared...
}
</pre>
Expand Down

0 comments on commit bc1468c

Please sign in to comment.