Skip to content

Commit

Permalink
Added additional window checks after some testing with express.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed May 15, 2015
1 parent bcbda79 commit ed83e26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"maxdepth": 9,
"maxerr": 20,
"globals": {
"ActiveXObject": false
"ActiveXObject": false,
"global": false
}
}
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function (grunt) {
compilerOpts: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level: 'verbose',
jscomp_off: ['checkTypes', 'fileoverviewTags'],
jscomp_off: ['checkTypes', 'checkVars', 'fileoverviewTags'],
summary_detail_level: 3,
output_wrapper: '"(function(){%output%}).call(this);"'
},
Expand Down
5 changes: 3 additions & 2 deletions tracekit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
MIT license
*/

var global;
(function(window, undefined) {

if (!window) {
return;
}

var TraceKit = {};
var _oldTraceKit = window.TraceKit;
Expand Down

0 comments on commit ed83e26

Please sign in to comment.