Skip to content

Commit

Permalink
f18
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Mar 11, 2019
1 parent 8af0ff7 commit 4499221
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contribs/gmf/src/controllers/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ function bootstrap(module) {
const oldObjectToString = Object.prototype.toString;
if (oldObjectToString.toString().indexOf('[native code]') < 0) {
Object.prototype.toString = function() {
if (this === window) {
if (this === null) {
return '[object Null]';
}
if (this === undefined) {
return '[object Undefined]';
}
return oldObjectToString.call(this);
};
}
Expand Down

0 comments on commit 4499221

Please sign in to comment.