Skip to content

Commit

Permalink
fix: resolve issue #53
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhus committed Apr 27, 2020
1 parent 460f076 commit 86b152d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domurl",
"version": "2.3.3",
"version": "2.3.4",
"license": "MIT",
"main": "url.min.js",
"ignore": [
Expand Down
3 changes: 2 additions & 1 deletion url.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
var isNode = typeof window === 'undefined' &&
typeof global !== 'undefined' &&
typeof require === 'function';
var isIe = !isNode && ~ns.navigator.userAgent.indexOf('MSIE');
var isIe = !isNode && ns.navigator && ns.navigator.userAgent &&
~ns.navigator.userAgent.indexOf('MSIE');

// Trick to bypass Webpack's require at compile time
var nodeRequire = isNode ? ns['require'] : null;
Expand Down
2 changes: 1 addition & 1 deletion url.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 86b152d

Please sign in to comment.