From 178b82eb6aa5e7cf7caf6bb891c9733718c7e330 Mon Sep 17 00:00:00 2001 From: jspenguin2017 Date: Fri, 5 Jan 2018 14:52:04 -0700 Subject: [PATCH] https://github.com/NanoAdblocker/NanoCore/issues/40 --- src/js/cloud-ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/cloud-ui.js b/src/js/cloud-ui.js index 45a1f73a0..d0a76bb7a 100644 --- a/src/js/cloud-ui.js +++ b/src/js/cloud-ui.js @@ -188,8 +188,6 @@ var onInitialize = function(options) { } self.cloud.options = options; - fetchCloudData(); - var xhr = new XMLHttpRequest(); xhr.open('GET', 'cloud-ui.html', true); xhr.overrideMimeType('text/html;charset=utf-8'); @@ -214,6 +212,10 @@ var onInitialize = function(options) { uDom('#cloudCog').on('click', openOptions); uDom('#cloudOptions').on('click', closeOptions); uDom('#cloudOptionsSubmit').on('click', submitOptions); + + // Patch 2018-01-05: Must not assume this XHR will always be faster + // than messaging + fetchCloudData(); }; xhr.send(); };