mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-28 02:50:39 +12:00
fix cloud race condition as in 178b82eb6a
This commit is contained in:
parent
d766209ab5
commit
f1d0e7a3b1
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue