NOtherDev / whatwebcando

An overview of the device integration HTML5 APIs
https://whatwebcando.today/
MIT License
837 stars 61 forks source link

Web Bluetooth demo doesn't work on cross-origin iframes #18

Closed beaufortfrancois closed 8 years ago

beaufortfrancois commented 8 years ago

screenshot 2016-08-10 at 2 59 12 pm

NOtherDev commented 8 years ago

Yes, you're right. I've also spotted that recently: https://github.com/NOtherDev/whatwebcando/issues/16 I'll handle that soon. Thanks!

NOtherDev commented 8 years ago

Added an alert with a standalone mode link. Thanks!

beaufortfrancois commented 8 years ago

It would be nice to not show the warning message if you're in standalone mode:

document.getElementById('alert').hidden = (window.self === window.top);
NOtherDev commented 8 years ago

That makes sense. Added, thank you again!