1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 08:15:03 +12:00

fix cloud race condition as in 178b82eb6a

This commit is contained in:
Raymond Hill 2018-01-07 10:20:03 -05:00
parent d766209ab5
commit f1d0e7a3b1
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -174,8 +174,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');
@ -200,6 +198,8 @@ var onInitialize = function(options) {
uDom('#cloudCog').on('click', openOptions);
uDom('#cloudOptions').on('click', closeOptions);
uDom('#cloudOptionsSubmit').on('click', submitOptions);
fetchCloudData();
};
xhr.send();
};