fix: add code comment
This commit is contained in:
parent
e4e299f9a6
commit
3a539e2d69
|
@ -2,6 +2,7 @@ import { isEmojiSupported, setCacheHandler } from 'is-emoji-supported'
|
|||
import { QuickLRU } from '../_thirdparty/quick-lru/quick-lru'
|
||||
|
||||
// avoid recomputing emoji support over and over again
|
||||
// use our own LRU since the built-in one grows forever, which is a small memory leak, but still
|
||||
setCacheHandler(new QuickLRU({ maxSize: 500 }))
|
||||
|
||||
export const testEmojiSupported = isEmojiSupported
|
||||
|
|
Loading…
Reference in New Issue