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

View File

@ -6,7 +6,6 @@ export function prepareAppForModuleResolver(callback: () => void) {
} }
export function initAppForModuleResolver() { export function initAppForModuleResolver() {
console.log('initAppForModuleResolver has callback?', appForModuleResolverCallback);
if (appForModuleResolverCallback) { if (appForModuleResolverCallback) {
appForModuleResolverCallback(); appForModuleResolverCallback();
appForModuleResolverCallback = undefined; appForModuleResolverCallback = undefined;