Fixes the old snapshot build (#4457)

This commit is contained in:
Panayot Cankov
2017-06-27 13:50:08 +03:00
committed by GitHub
parent bbffa5480e
commit 1420fa8fcc
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ function registerOnGlobalContext(name: string, module: string): void {
let snapshotGlobals;
export function install() {
if ((<any>global).__snapshotEnabled) {
if ((<any>global).__snapshot || (<any>global).__snapshotEnabled) {
if (!snapshotGlobals) {
// require in snapshot mode is cheap
var timer: typeof timerModule = require("timer");

View File

@ -2,7 +2,7 @@ import { setActivityCallbacks, AndroidActivityCallbacks } from "./frame";
import * as globals from "../../globals";
import * as appModule from "../../application";
if ((<any>global).__snapshotEnabled) {
if ((<any>global).__snapshot || (<any>global).__snapshotEnabled) {
globals.install();
}