You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently this is used to detect if we are running in a browser or not. A quick fix below, there may be better ways as i think navigator might have keys set in some scenarios
Here is the diff that solved my problem:
diff --git a/node_modules/emoji-js/lib/emoji.js b/node_modules/emoji-js/lib/emoji.js
index 626a0fd..f9b1405 100644
--- a/node_modules/emoji-js/lib/emoji.js+++ b/node_modules/emoji-js/lib/emoji.js@@ -588,7 +588,7 @@
self.inits.env = 1;
self.replace_mode = 'img';
var supports_css = false;
- if (typeof(navigator) !== 'undefined') {+ if (typeof(navigator) !== 'undefined' && Object.keys(navigator).length > 0) {
var ua = navigator.userAgent;
if (typeof window !== 'undefined' && window.getComputedStyle){
try {
Hi! 👋
Firstly, thanks for your work on this project! 🙂
navigator object is present in Node >21 according to node docs https://nodejs.org/en/blog/announcements/v21-release-announce#navigator-object-integration
currently this is used to detect if we are running in a browser or not. A quick fix below, there may be better ways as i think navigator might have keys set in some scenarios
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: