From 317781781b3124652c689c023abf50aa0ed506f5 Mon Sep 17 00:00:00 2001 From: Peter Kanev Date: Tue, 21 Mar 2017 11:34:06 +0200 Subject: [PATCH] attach android console implementation always when android snapshot is enabled --- tns-core-modules/globals/globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/globals/globals.ts b/tns-core-modules/globals/globals.ts index 1e2e28b0e..e2b9f09f7 100644 --- a/tns-core-modules/globals/globals.ts +++ b/tns-core-modules/globals/globals.ts @@ -125,7 +125,7 @@ if ((global).__snapshot) { // if positive - the current device is an Android // so a custom implementation of the global 'console' object is attached. // otherwise do nothing on iOS - the NS runtime provides a native 'console' functionality. -if ((global).android) { +if ((global).android || (global).__snapshot) { const consoleModule = require("console"); (global).console = new consoleModule.Console(); }