From: Chris Duncan Date: Fri, 1 Nov 2024 05:18:04 +0000 (-0700) Subject: Fix global assignment. X-Git-Tag: v0.0.16~1 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4ebf70f7b26e39220fe3b299884c7caf050130ac;p=libnemo.git Fix global assignment. --- 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