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

Remove accidental eval #403

Merged
merged 1 commit into from
Sep 26, 2022
Merged

Remove accidental eval #403

merged 1 commit into from
Sep 26, 2022

Conversation

atjn
Copy link
Contributor

@atjn atjn commented Sep 26, 2022

This call constitutes an eval operation, which is generally bad practice in JS, and results in errors if you run the page with a strict Content Security Policy.

Calling the function by reference does not invoke eval :)

@jpmens jpmens merged commit 12e60ab into owntracks:master Sep 26, 2022
@jpmens
Copy link
Member

jpmens commented Sep 26, 2022

Merged, thank you.

@atjn atjn deleted the strict-js branch September 26, 2022 11:00
jpmens added a commit that referenced this pull request Sep 29, 2022
- FIX: Remove accidental eval (#403)
- FIX: Various build fixes (#402)
- FIX: now compiles without MQTT (#401)
- FIX: read OTR_TOPICS from environment (overrides config); can be overriden by argv
- UPD: ocat -v shows compiled-in values, ot-recorder -V runtime ones
- FIX: add "OTR_HTTPPREFIX" (verbatim) to tour url if prefix unconfigured (#399)
- FIX: Duplicate log entries when running as daemon (#398)
- FIX: package build for raspbian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants