docs: add note about detecting emoji support

[skip ci]
This commit is contained in:
Nolan Lawson 2021-04-10 12:49:34 -07:00 committed by GitHub
parent 3b3518812d
commit 1fd4cf0bf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -363,6 +363,8 @@ await database.getEmojiBySearchPrefix('elephant'); // [{unicode: "🐘", ...}]
Note that under the hood, IndexedDB data is partitioned based on the `locale`. So if you create two `Database`s with two different `locale`s, it will store twice as much data.
Also note that, unlike the picker, the database does not filter emoji based on whether they are supported by the current browser/OS or not. To detect emoji support, you can use a library like [is-emoji-supported](https://github.com/koala-interactive/is-emoji-supported).
Full API:
<!-- database API start -->