mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +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;
|
let snapshotGlobals;
|
||||||
export function install() {
|
export function install() {
|
||||||
if ((<any>global).__snapshot) {
|
if ((<any>global).__snapshotEnabled) {
|
||||||
if (!snapshotGlobals) {
|
if (!snapshotGlobals) {
|
||||||
// require in snapshot mode is cheap
|
// require in snapshot mode is cheap
|
||||||
var timer: typeof timerModule = require("timer");
|
var timer: typeof timerModule = require("timer");
|
||||||
|
@ -2,7 +2,7 @@ import { setActivityCallbacks, AndroidActivityCallbacks } from "./frame";
|
|||||||
import * as globals from "../../globals";
|
import * as globals from "../../globals";
|
||||||
import * as appModule from "../../application";
|
import * as appModule from "../../application";
|
||||||
|
|
||||||
if ((<any>global).__snapshot) {
|
if ((<any>global).__snapshotEnabled) {
|
||||||
globals.install();
|
globals.install();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user