From 17baa7c2dc3f3152b771b6364ad83da90aad6b4a Mon Sep 17 00:00:00 2001 From: Paul Shapiro Date: Thu, 1 Nov 2018 17:12:25 -0500 Subject: [PATCH] MyMoneroCoreBridge: xmlhttprequest vs fetch comment --- monero_utils/MyMoneroCoreBridge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monero_utils/MyMoneroCoreBridge.js b/monero_utils/MyMoneroCoreBridge.js index a2ade1c..831458e 100644 --- a/monero_utils/MyMoneroCoreBridge.js +++ b/monero_utils/MyMoneroCoreBridge.js @@ -712,7 +712,7 @@ module.exports = function(options) }; } else if (ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER) { read_fn = function(url) - { // it's an option to move this over to fetch, but, fetch requires a polyfill for these older browsers anyway - making fetch an automatic dep just for asmjs fallback - probably not worth it yet - but it would be if fetch were to become a dep for another reason, such as a networked SendFunds() implementation + { // it's an option to move this over to fetch, but, fetch requires a polyfill for these older browsers anyway - making fetch an automatic dep just for asmjs fallback - and the github/fetch polyfill does not appear to actually support mode (for 'same-origin' policy) anyway - probably not worth it yet var xhr = new XMLHttpRequest() xhr.open("GET", url, false) xhr.send(null)