We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8b13ac + 3177817 commit e7e87f7Copy full SHA for e7e87f7
tns-core-modules/globals/globals.ts
@@ -125,7 +125,7 @@ if ((<any>global).__snapshot) {
125
// if positive - the current device is an Android
126
// so a custom implementation of the global 'console' object is attached.
127
// otherwise do nothing on iOS - the NS runtime provides a native 'console' functionality.
128
-if ((<any>global).android) {
+if ((<any>global).android || (<any>global).__snapshot) {
129
const consoleModule = require("console");
130
(<any>global).console = new consoleModule.Console();
131
}
0 commit comments