Skip to content
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

JS: Add __filepath and __dirpath globals. #55

Merged
merged 1 commit into from
Mar 27, 2024
Merged

JS: Add __filepath and __dirpath globals. #55

merged 1 commit into from
Mar 27, 2024

Conversation

jamisonderek
Copy link
Contributor

@jamisonderek jamisonderek commented Mar 27, 2024

What's new

  • This adds two new global variables to JavaScript files loaded by the js_app. __filepath is the fully qualified path to the .js file (like "/ext/apps/Scripts/path.js"). __dirpath is the folder containing the .js file (like "/ext/apps/Scripts").

For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

@HaxSam
Copy link
Member

HaxSam commented Mar 27, 2024

doing the review

@HaxSam
Copy link
Member

HaxSam commented Mar 27, 2024

Looks good

@HaxSam HaxSam merged commit ab72ead into Next-Flip:dev Mar 27, 2024
@Willy-JL
Copy link
Member

Thank you :D

@Willy-JL Willy-JL added the enhancement New enhancement or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New enhancement or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants