src/newTab.js
/**
   * Either fetch the Verse of the Day from an API or skip ahead to
   * next step if the Verse is cached.
   */
Either fetch the Verse of the Day from an API or skip ahead to
next step if the Verse is cached.
Either fetch the Verse of the Day from an API or skip ahead to next step if the Verse is cached .
fetchVerse() {
    if (this.isCached()) return this.receiveVerse(this.cachedBibleVerse);
    fetch(this.bibleVerseUrl)
      .then(r => r.json())
      .then((data) => {
        const verse = data[0];
        this.receiveVerse(verse);
        this.cache(verse);
      })
      .catch(this.receiveBibleVerseFailure.bind(this))
  }
fetchVerse ( ) { if ( this . isCached ( ) ) return this . receiveVerse ( this . cachedBibleVerse ) ; fetch ( this . bibleVerseUrl ) . then ( r => r . json ( ) ) . then ( ( data ) => { const verse = data [ 0 ] ; this . receiveVerse ( verse ) ; this . cache ( verse ) ; } ) . catch ( this . receiveBibleVerseFailure . bind ( this ) ) }
Either fetch the Verse of the Day from an API or skip ahead to
 next step if the Verse is cached.
Either fetch the Verse of the Day from an API or skip ahead to next step if the Verse is cached .
// we don't want to continue to `fetch` if the verse is cached.