惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Webroot Blog
Webroot Blog
AI
AI
P
Palo Alto Networks Blog
Attack and Defense Labs
Attack and Defense Labs
WordPress大学
WordPress大学
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
Spread Privacy
Spread Privacy
T
Tor Project blog
罗磊的独立博客
小众软件
小众软件
S
Security Affairs
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
Apple Machine Learning Research
Apple Machine Learning Research
T
Threatpost
NISL@THU
NISL@THU
博客园_首页
PCI Perspectives
PCI Perspectives
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
N
News and Events Feed by Topic
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Forbes - Security
Forbes - Security
博客园 - 叶小钗
D
Darknet – Hacking Tools, Hacker News & Cyber Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
L
LINUX DO - 热门话题
T
Threat Research - Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Security Latest
Security Latest
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Cloudflare Blog
A
About on SuperTechFans
爱范儿
爱范儿
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
TaoSecurity Blog
TaoSecurity Blog
宝玉的分享
宝玉的分享
G
GRAHAM CLULEY
雷峰网
雷峰网
F
Full Disclosure
I
Intezer
Cloudbric
Cloudbric
博客园 - 三生石上(FineUI控件)
U
Unit 42

Recent Commits to web-share:main

Merge pull request #289 from siusin/main · w3c/web-share@e871726 update the editor list · w3c/web-share@a296150 Editorial: fix typos and markup · w3c/web-share@3faf529 Merge pull request #277 from w3c/WebShare-rec · w3c/web-share@0b15b86 chore: prepare for REC · w3c/web-share@aa811f9 chore: fix wrong pass rate · w3c/web-share@e441b96 chore: remove explanation of failures col · w3c/web-share@f511e0b chore: move disabled-by-permissions-policy.https.sub.html to excluded… · w3c/web-share@6681897 chore: tidy · w3c/web-share@0eaf73c Make Permissions-Policy HTTP header OPTIONAL (#275) · w3c/web-share@d0ea0fe Editorial: note canShare is not future compatible (#273) · w3c/web-share@7f78426 Editorial: add static implementation report (#274) · w3c/web-share@0a7a70c Editorial: fix IDL linking · w3c/web-share@35980bb Editorial: explain Changelog · w3c/web-share@c4b6677 chore: clean up changelog · w3c/web-share@aa0cb86 chore: tidy · w3c/web-share@8a04511 Editorial: improve a11y guidelines for share sheet (#270) · w3c/web-share@49300de Editorial: thank wide review groups in acknowledgements (#269) · w3c/web-share@783e54b Editorial: switch to 'terminate this algorithm' (#268) · w3c/web-share@5c9977c
Editorial: fix typo (#283) · w3c/web-share@bc1468c
marcoscacere · 2024-06-07 · via Recent Commits to web-share:main
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>