Example #1
0
    const pushGame = (game: Game) => {
      if (!game) {
        return;
      }

      if (isInternal) {
        isInternal = false;
        // we need to turn that into an https URL presto
        this.ctx.store.dispatch(
          actions.evolveTab({
            window: "root",
            tab: this.tab,
            url: game.url,
            resource: `games/${gameId}`,
            replace: true,
          })
        );
      }
      this.push(gameToTabData(game));
    };
Example #2
0
 action: payload => actions.modalResponse(payload),
Example #3
0
 (sniffedLang, preferenceLang) => {
   const lang = preferenceLang || sniffedLang || fallbackLang;
   schedule.dispatch(actions.languageChanged({ lang }));
 }
Example #4
0
 each(Object.keys(this.reactors), key => {
   if (!actions.hasOwnProperty(key)) {
     throw new Error(`trying to react to unknown action type ${key}`);
   }
 });