window.happo = window.happo || {};

window.happo.initChunk = () => {};
window.happo.nextExample = () => {
  if (!window.happoProcessor.next()) {
    return;
  }
  return window.happoProcessor.processCurrent();
};

window.happo = window.happo || {};

window.happo.initChunk = () => {};
window.happo.nextExample = () => {
  if (!window.happoProcessor.next()) {
    return Promise.resolve(undefined);
  }
  return window.happoProcessor.processCurrent();
};

Make sure happo.nextExample always returns a promise
Make sure happo.nextExample always returns a promise

Builds are failing in Safari and I think it's because nextExample isn't
consistently returning a promise.
