diff options
Diffstat (limited to 'ext/mixed')
| -rw-r--r-- | ext/mixed/js/core.js | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js index fec26a0e..7cdd62d8 100644 --- a/ext/mixed/js/core.js +++ b/ext/mixed/js/core.js @@ -192,6 +192,11 @@ const clone = (() => {      return clone;  })(); +// Expose clone function on the global object, since util.js's utilBackgroundIsolate needs access to it. +if (typeof window === 'object' && window !== null) { +    window.clone = clone; +} +  /*   * Async utilities |