-
Notifications
You must be signed in to change notification settings - Fork 22
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
WP-5850 Use hasProperty to detect sockjs.js #299
Conversation
RavenNumber of Findings: 0MagpieNumber of findings: 0 |
@@ -67,6 +74,8 @@ <h1>Echo</h1> | |||
<pre id="logs"></pre> | |||
</div> | |||
|
|||
<!--<script src="packages/sockjs_client_wrapper/sockjs.js"></script>--> |
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.
should these be committed as being commented out?
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.
Yeah I don't have a great way to dynamically add/remove the script via the example UI, so I figured this was a good middle ground for now.
519c893
to
f11698a
Compare
QA +1
Merging into master. |
@Workiva/release-management-pp |
Issue
Actually accessing the
SockJS
object onjs.context
throws because it ends up trying to call the object.Solution
The proper way to check is to use
js.context.hasProperty
which will simply check to see if theSockJS
object is available, which is all we're after.Code Review
@Workiva/app-frameworks