goog.require('fontface.Observer');

if (typeof module !== 'undefined') {
  module.exports = fontface.Observer;
} else {
  window['FontFaceObserver'] = fontface.Observer;
  window['FontFaceObserver']['prototype']['load'] = fontface.Observer.prototype.load;
}

goog.require('fontface.Observer');

if (typeof module === 'object') {
  module.exports = fontface.Observer;
} else {
  window['FontFaceObserver'] = fontface.Observer;
  window['FontFaceObserver']['prototype']['load'] = fontface.Observer.prototype.load;
}

Check that module is an object, rather than that it's defined
Check that module is an object, rather than that it's defined
