Infusion's jquery.standalone file throws an error when loaded in an AudioWorkletGlobalScope

Description

When Infusion's jquery.standalone.js file is used with an AudioWorkletProcessor, an error occurs on line 35. This is because we refer to "global" without checking first to see if the "global" global variable is actually present. AudioWorkletGlobalScope (and I assume other Worklet scopes, though I haven't tested with any other) are extremely minimal environments that don't even provide a reference to a global scope.

The following refinement to our global scope detection on lines 34-5 solved the problem for me:

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

Created March 12, 2023 at 4:47 PM
Updated July 22, 2024 at 2:34 PM
Resolved March 13, 2023 at 11:33 AM