mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Used the wrong flag to check if snapshot was enabled (#4446)
This commit is contained in:
@ -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");
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user