Skip to content

Commit bc1468c

Browse files
Editorial: fix typo (#283)
1 parent 0b15b86 commit bc1468c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ <h3>
146146
const file = new File([], "some.png", { type: "image/png" });
147147

148148
// Check if files are supported
149-
if (navigates.canShare({files: [file]})) {
149+
if (navigator.canShare({files: [file]})) {
150150
// Sharing a png file would probably be ok...
151151
}
152152

153153
// Check if a URL is ok to share...
154-
if (navigates.canShare({ url: someURL })) {
154+
if (navigator.canShare({ url: someURL })) {
155155
// The URL is valid and can probably be shared...
156156
}
157157
</pre>

0 commit comments

Comments
 (0)