Commit 9470cb22 authored by Alexey Golubev's avatar Alexey Golubev

Merge branch 'hotfix/v4.1.7'

parents df6949da c2ab6e3a
......@@ -2693,7 +2693,12 @@ CUserCacheColor.prototype.init = function(nColor) {
script.type = 'text/javascript';
script.src = url;
script.onreadystatechange = callback;
script.onreadystatechange = function () {
if (this.readyState === 'complete' || this.readyState === 'loaded') {
script.onreadystatechange = null;
setTimeout(callback, 0);
}
};
script.onload = callback;
// Fire the loading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment