attach android console implementation always when android snapshot is enabled

This commit is contained in:
Peter Kanev
2017-03-21 11:34:06 +02:00
parent de7e787283
commit 317781781b

View File

@@ -125,7 +125,7 @@ if ((<any>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 ((<any>global).android) {
if ((<any>global).android || (<any>global).__snapshot) {
const consoleModule = require("console");
(<any>global).console = new consoleModule.Console();
}