processRoute_() {
      if (this.currentPath_ == '/configureCommands' ||
          this.currentPath_ == '/shortcuts') {
        window.history.replaceState(
            undefined /* stateObject */, '', '/shortcuts');
      } else if (this.currentPath_ !== '/') {
        window.history.replaceState(undefined /* stateObject */, '', '/');
      }
    }
/**
     * Going to /configureCommands and /shortcuts should land you on /shortcuts.
     * These are the only two supported routes, so all other cases will redirect
     * you to root path if not already on it.
     * @private
     */
Going to /configureCommands and /shortcuts should land you on /shortcuts.
These are the only two supported routes, so all other cases will redirect
you to root path if not already on it.
@private
Going to / configureCommands and / shortcuts should land you on / shortcuts . These are the only two supported routes so all other cases will redirect you to root path if not already on it . @private
processRoute_() {
      if (this.currentPath_ == '/configureCommands' ||
          this.currentPath_ == '/shortcuts') {
        window.history.replaceState(
            undefined , '', '/shortcuts');
      } else if (this.currentPath_ !== '/') {
        window.history.replaceState(undefined , '', '/');
      }
    }
processRoute_ ( ) { if ( this . currentPath_ == '/configureCommands' || this . currentPath_ == '/shortcuts' ) { window . history . replaceState ( undefined , '' , '/shortcuts' ) ; } else if ( this . currentPath_ !== '/' ) { window . history . replaceState ( undefined , '' , '/' ) ; } }
Going to /configureCommands and /shortcuts should land you on /shortcuts.
Going to / configureCommands and / shortcuts should land you on / shortcuts .
/* stateObject */ /* stateObject */