From a468662cdff672ccb131072ce4a15d357371867b Mon Sep 17 00:00:00 2001 From: Auke van Slooten Date: Tue, 7 Jan 2025 13:02:30 +0100 Subject: [PATCH] removed window for globalThis, so oauth2 tests can run in node --- src/browser.mjs | 4 +++- src/everything.mjs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/browser.mjs b/src/browser.mjs index 48369a0..b104b97 100644 --- a/src/browser.mjs +++ b/src/browser.mjs @@ -1,3 +1,5 @@ import * as metro from './metro.mjs' -window.metro = metro +globalThis.metro = metro + +export default metro \ No newline at end of file diff --git a/src/everything.mjs b/src/everything.mjs index 9f9f4bf..951116b 100644 --- a/src/everything.mjs +++ b/src/everything.mjs @@ -9,6 +9,6 @@ const metro = Object.assign({}, m, { } }) -window.metro = metro +globalThis.metro = metro export default metro \ No newline at end of file