Commit 6358da8a authored by Rick Waldron's avatar Rick Waldron

Fixes #13566. If there is a window object, and it has a document property, it...

Fixes #13566. If there is a window object, and it has a document property, it might be the window we want, so define jQuery and $. Thanks to @dcherman for saving us from that embarrassment!
Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent 37c801ed
......@@ -17,7 +17,8 @@ if ( typeof module === "object" && typeof module.exports === "object" ) {
}
}
// If there is a window object, define a jQuery and $
if ( typeof window === "object" ) {
// If there is a window object, that at least has a document property,
// define jQuery and $ identifiers
if ( typeof window === "object" && typeof window.document === "object" ) {
window.jQuery = window.$ = jQuery;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment