diff --git a/src/ua-parser.js b/src/ua-parser.js index e0c5e7f..ac64380 100644 --- a/src/ua-parser.js +++ b/src/ua-parser.js @@ -865,4 +865,4 @@ }; } -})(this); +})(typeof window === 'object' ? window : this);