From 9b7c7c0d20d2ef3bf6a1ea8b2a32b99cf99fe6b4 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Thu, 11 Jul 2019 12:43:09 +0300 Subject: [PATCH] chore: remove unneeded console registration --- tns-core-modules/globals/globals.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tns-core-modules/globals/globals.ts b/tns-core-modules/globals/globals.ts index 5058447c1..e88a68496 100644 --- a/tns-core-modules/globals/globals.ts +++ b/tns-core-modules/globals/globals.ts @@ -6,10 +6,3 @@ import "./polyfills/xhr"; import "./polyfills/fetch"; import "./decorators"; - -// This is probably not needed any more -if ((global).__snapshot || (global).__snapshotEnabled) { - // Object.assign call will fire an error when trying to write to a read-only property of an object, such as 'console' - const consoleModule = require("console").Console; - global.console = global.console || new consoleModule(); -}