code: function receiveIframeMessage(event) {
      const data = uiFns.receiveIframeMessageBoilerplate(event);
  
      if (!data) {
        return;
      }
  
      switch (data.event) {
        case 'patternlab.updatePath':
          window.location.replace('../../' + data.path);
  
          break;
      }
    }
docs: This gets attached as an event listener, so do not use arrow function notation.
  
  @param {object} event - Event object.