From 4ebf70f7b26e39220fe3b299884c7caf050130ac Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 31 Oct 2024 22:18:04 -0700 Subject: [PATCH] Fix global assignment. --- src/global.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global.ts b/src/global.ts index 083e4b9..f7b61d6 100644 --- a/src/global.ts +++ b/src/global.ts @@ -1,5 +1,5 @@ // SPDX-FileCopyrightText: 2024 Chris Duncan // SPDX-License-Identifier: GPL-3.0-or-later -import * as libnemo from './main.js' -Object.defineProperty(globalThis, 'libnemo', libnemo) +import * as main from './main.js' +(globalThis as any).libnemo ??= main -- 2.34.1