mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 11:17:04 +08:00
chore: remove unneeded console registration
This commit is contained in:
@ -6,10 +6,3 @@ import "./polyfills/xhr";
|
|||||||
import "./polyfills/fetch";
|
import "./polyfills/fetch";
|
||||||
|
|
||||||
import "./decorators";
|
import "./decorators";
|
||||||
|
|
||||||
// This is probably not needed any more
|
|
||||||
if ((<any>global).__snapshot || (<any>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();
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user