async initTutorial() {
    /* global versionInfo */
    const major = versionInfo.appVersion.split('.')[0];
    const cnf = this.config;
    const passed = cnf.finishedOnboarding || [];
    if (passed.indexOf(major) !== -1) {
      return;
    }
    try {
      await this._loadComponent('arc-onboarding/arc-onboarding', '@advanced-rest-client');
    } catch (cmp) {
      this.log.error(`Unable to load ${cmp}`);
      return;
    }
    const element = document.createElement('arc-onboarding');
    element.addEventListener('tutorial-close', this._finalizeTutorial.bind(this));
    element.dataset.major = major;
    document.body.appendChild(element);
    element.opened = true;
  }
/**
   * Initialized the tutorial if needed.
   */
Initialized the tutorial if needed.
Initialized the tutorial if needed .
async initTutorial() {
    const major = versionInfo.appVersion.split('.')[0];
    const cnf = this.config;
    const passed = cnf.finishedOnboarding || [];
    if (passed.indexOf(major) !== -1) {
      return;
    }
    try {
      await this._loadComponent('arc-onboarding/arc-onboarding', '@advanced-rest-client');
    } catch (cmp) {
      this.log.error(`Unable to load ${cmp}`);
      return;
    }
    const element = document.createElement('arc-onboarding');
    element.addEventListener('tutorial-close', this._finalizeTutorial.bind(this));
    element.dataset.major = major;
    document.body.appendChild(element);
    element.opened = true;
  }
async initTutorial ( ) { const major = versionInfo . appVersion . split ( '.' ) [ 0 ] ; const cnf = this . config ; const passed = cnf . finishedOnboarding || [ ] ; if ( passed . indexOf ( major ) !== - 1 ) { return ; } try { await this . _loadComponent ( 'arc-onboarding/arc-onboarding' , '@advanced-rest-client' ) ; } catch ( cmp ) { this . log . error ( ` ${ cmp } ` ) ; return ; } const element = document . createElement ( 'arc-onboarding' ) ; element . addEventListener ( 'tutorial-close' , this . _finalizeTutorial . bind ( this ) ) ; element . dataset . major = major ; document . body . appendChild ( element ) ; element . opened = true ; }
Initialized the tutorial if needed.
Initialized the tutorial if needed .
/* global versionInfo */