diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-06-20 12:04:11 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-06-20 12:04:11 +0200 |
commit | 0d0c865fd057db347d4321fc28bbf5ef46b53f96 (patch) | |
tree | fc271b720b0bcc02bd433c633dac16b4ea1a4076 | |
parent | 617777ac071379319b951c387da9cbd7013588e4 (diff) | |
download | cors-bypass-0d0c865fd057db347d4321fc28bbf5ef46b53f96.tar.gz cors-bypass-0d0c865fd057db347d4321fc28bbf5ef46b53f96.zip |
allow the global "HKT" object to exist beforehand
-rw-r--r-- | cors-bypass.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cors-bypass.js b/cors-bypass.js index cafe033..75a599b 100644 --- a/cors-bypass.js +++ b/cors-bypass.js @@ -44,7 +44,7 @@ "use strict"; -var HKT = {_api_call_id: 0}; +var HKT = Object.assign(window.HKT || {}, {_api_call_id: 0}); HKT._error_from_jsonifiable_data = function(jsonifiable) { const arg_props = ["message", "fileName", "lineNumber"]; |