From 45403fba700225ac089a73c9d8a6790fe6139305 Mon Sep 17 00:00:00 2001 From: AbigailDeng Date: Thu, 22 Aug 2024 16:20:39 +0800 Subject: [PATCH] feat: delete console --- src/util/httpProvider.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util/httpProvider.js b/src/util/httpProvider.js index 9dd7586a..0b539560 100644 --- a/src/util/httpProvider.js +++ b/src/util/httpProvider.js @@ -14,23 +14,19 @@ let RequestLibraryXMLOnly = null; let isFetch = false; let NodeHeaders; if (process.env.RUNTIME_ENV === 'browser') { - console.log(1); // For browsers use DOM Api XMLHttpRequest // serviceworker without window and document, only with self // eslint-disable-next-line no-restricted-globals const _self = typeof self === 'object' ? self : {}; const _window = typeof window === 'object' ? window : _self; if (typeof _window.XMLHttpRequest !== 'undefined') { - console.log('1-1'); RequestLibrary = _window.XMLHttpRequest; isFetch = false; } else if (typeof _window.fetch !== 'undefined') { - console.log('1-2'); RequestLibrary = _window.fetch; isFetch = true; } } else { - console.log(2); // For node use xmlhttprequest // eslint-disable-next-line global-require RequestLibraryXMLOnly = require('xmlhttprequest').XMLHttpRequest;