Editorial: fix typo (#283) · w3c/web-share@bc1468c
marcoscacere
·
2024-06-07
·
via Recent Commits to web-share:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -146,12 +146,12 @@ <h3>
|
146 | 146 | const file = new File([], "some.png", { type: "image/png" }); |
147 | 147 | |
148 | 148 | // Check if files are supported |
149 | | - if (navigates.canShare({files: [file]})) { |
| 149 | + if (navigator.canShare({files: [file]})) { |
150 | 150 | // Sharing a png file would probably be ok... |
151 | 151 | } |
152 | 152 | |
153 | 153 | // Check if a URL is ok to share... |
154 | | - if (navigates.canShare({ url: someURL })) { |
| 154 | + if (navigator.canShare({ url: someURL })) { |
155 | 155 | // The URL is valid and can probably be shared... |
156 | 156 | } |
157 | 157 | </pre> |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。