Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Jun 23, 2024
1 parent 1118e78 commit 2d83978
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 157,10 @@ Gets triggered when user leaves the component.
## Gyroscope - Device Orientation

Please keep in mind that detecting device orientation is currently [experimental technology](https://developer.mozilla.org/en-US/docs/MDN/Contribute/Guidelines/Conventions_definitions#Experimental).
Check the [browser compatibility](https://caniuse.com/#search=DeviceOrientation) before using this in production.
Check the [browser compatibility](https://caniuse.com/#search=DeviceOrientation) before using it in production.
A few takeaways when using device orientation event:

- always use secure origins (such as `https`)
- if you're using VS Code, then you can
- use the in-built port-forwarding feature to expose your localhost to the internet and optionally change the protocol to `https`
- alternatively, use microsoft's [live-share](https://visualstudio.microsoft.com/services/live-share/) extension which supports [sharing server](https://learn.microsoft.com/en-us/visualstudio/liveshare/use/share-server-visual-studio-code#share-a-server) through a tunnel.
- it doesn't work in all browsers when using it in cross-origin `<iframe>` element

<details>
Expand Down

0 comments on commit 2d83978

Please sign in to comment.