Fix IO.refreshLobby for modules

This commit is contained in:
Tim Mickel 2016-02-03 12:02:57 -05:00
parent de99fabacc
commit f715c5054c

View file

@ -1,7 +1,7 @@
import iOS from './iOS';
import MediaLib from './MediaLib';
import JSZip from 'jszip';
import {setCanvasSize, drawThumbnail} from '../utils/lib';
import {setCanvasSize, drawThumbnail, gn} from '../utils/lib';
import Lobby from '../lobby/Lobby';
import SVG2Canvas from '../utils/SVG2Canvas';
@ -700,7 +700,7 @@ export default class IO {
// For updating the Lobby UI - if we're on the lobby page when receiving a project, refresh it
function refreshLobby () {
if (typeof (Lobby) != 'undefined') { //
if (gn('hometab') !== null) { // Check if we're on the lobby page
if (saveActual == saveExpected) {
Lobby.setPage('home');
} else { // Waiting for assets to be saved