Skip to content

Commit

Permalink
[BUGFIX release] Ensure typeof check for Node environments is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored Feb 21, 2020
1 parent 7e09bb2 commit 696948c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ember/-internals/glimmer/lib/protocol-for-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function installProtocolForURL(environment: EmberEnvironmentDeleg
// URL globally provided, likely from FastBoot's sandbox
nodeURL = URL;
environment.protocolForURL = nodeProtocolForURL;
} else if (typeof module !== undefined && typeof module.require === 'function') {
} else if (typeof module !== 'undefined' && typeof module.require === 'function') {
// Otherwise, we need to fall back to our own URL parsing.
// Global `require` is shadowed by Ember's loader so we have to use the fully
// qualified `module.require`.
Expand Down

0 comments on commit 696948c

Please sign in to comment.