Browse Source

fix cloud race condition as in 178b82eb6a

pull/2/head
Raymond Hill 7 years ago
parent
commit
f1d0e7a3b1
No known key found for this signature in database GPG Key ID: 25E1490B761470C2
  1. 4
      src/js/cloud-ui.js

4
src/js/cloud-ui.js

@ -174,8 +174,6 @@ var onInitialize = function(options) {
} }
self.cloud.options = options; self.cloud.options = options;
fetchCloudData();
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('GET', 'cloud-ui.html', true); xhr.open('GET', 'cloud-ui.html', true);
xhr.overrideMimeType('text/html;charset=utf-8'); xhr.overrideMimeType('text/html;charset=utf-8');
@ -200,6 +198,8 @@ var onInitialize = function(options) {
uDom('#cloudCog').on('click', openOptions); uDom('#cloudCog').on('click', openOptions);
uDom('#cloudOptions').on('click', closeOptions); uDom('#cloudOptions').on('click', closeOptions);
uDom('#cloudOptionsSubmit').on('click', submitOptions); uDom('#cloudOptionsSubmit').on('click', submitOptions);
fetchCloudData();
}; };
xhr.send(); xhr.send();
}; };

Loading…
Cancel
Save