mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
This commit is contained in:
parent
7cd8185f3a
commit
178b82eb6a
1 changed files with 4 additions and 2 deletions
|
@ -188,8 +188,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');
|
||||||
|
@ -214,6 +212,10 @@ 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);
|
||||||
|
|
||||||
|
// Patch 2018-01-05: Must not assume this XHR will always be faster
|
||||||
|
// than messaging
|
||||||
|
fetchCloudData();
|
||||||
};
|
};
|
||||||
xhr.send();
|
xhr.send();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue