-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix accessing window and navigator global objects, fix Url import #709
Conversation
@@ -483,10 +483,10 @@ export default class ExpensiMark { | |||
Log.alert('[ExpensiMark] Missing account name', {accountID: g1}); | |||
return '@Hidden'; | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a prettier diff on main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💥
Not sure who's going to review and merge this one as @roryabraham has context on it, but @thienlnam was assigned. Either way the PR is ready, thank you! |
🚀Published to npm in v2.0.2 |
This is a follow up PR to the setup of TS in this repo. While testing in the E/App here I noticed two issues:
Url
export is wrong (I tested it before but missed that Url was undefined 🤦)index.ts
causes other exported files to run (for exampleBrowserDetect.jsx
). This causes problems because code inexpensify-common
assumes thatwindow
andnavigator
global objects exist, which isn't always true.Fixed Issues
$ Expensify/App#42245