Third-Party Library Uses `window` not `globalThis` Causing Issues.
I'm using a third-party library that just released a new version and when I try to use it I get an error:
error: Uncaught (in promise) ReferenceError: window is not defined
error: Uncaught (in promise) ReferenceError: window is not defined
With further information
info: window global is not available in Deno 2. hint: Replace `window` with `globalThis`.
info: window global is not available in Deno 2. hint: Replace `window` with `globalThis`.
This makes sense but is frustrating as I don't control that code and it makes sense they wouldn't reference
globalThis
globalThis
as that isn't the standard. Is there a slick option of how to fix this on the fly or do I need to take their code and replace all window references with