chore: cleanup

This commit is contained in:
Nathan Walker
2025-07-09 22:40:30 -07:00
parent cb9dddeb96
commit be6a9080b0
2 changed files with 3 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import * as mediaQueryList from '../media-query-list';
import * as text from '../text';
import * as xhrImpl from '../xhr';
import '../fetch';
import * as fetchPolyfill from '../fetch';
import * as wgc from '../wgc';
import * as cryptoImpl from '../wgc/crypto';
import * as subtleCryptoImpl from '../wgc/crypto/SubtleCrypto';
@@ -345,8 +346,8 @@ export function initGlobal() {
global.registerModule('xhr', () => xhrImpl);
installPolyfills('xhr', ['XMLHttpRequest', 'FormData', 'Blob', 'File', 'FileReader']);
// global.registerModule('fetch', () => require('../fetch'));
// installPolyfills('fetch', ['fetch', 'Headers', 'Request', 'Response']);
global.registerModule('fetch', () => fetchPolyfill);
installPolyfills('fetch', ['fetch', 'Headers', 'Request', 'Response']);
global.registerModule('wgc', () => wgc);
installPolyfills('wgc', ['atob', 'btoa']);