Used the wrong flag to check if snapshot was enabled (#4446)

This commit is contained in:
Panayot Cankov
2017-06-23 17:30:41 +03:00
committed by GitHub
parent f7c9bd5d52
commit bbffa5480e
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).__snapshot) {
if ((<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).__snapshot) {
if ((<any>global).__snapshotEnabled) {
globals.install();
}