assign the cors iframe an id

pull/1/head
ansuz 2017-01-05 14:27:40 +01:00
parent e56cc49f79
commit bd6f2c037e
1 changed files with 2 additions and 1 deletions

View File

@ -18,12 +18,13 @@
onload('[timeoutError] could not load iframe at ' + src);
}, timeout);
iframe.setAttribute('id', 'cors-store');
iframe.onload = function (e) {
onload(void 0, iframe, e);
window.clearTimeout(to);
};
iframe.setAttribute('src', src);
iframe.style.display = 'none';
parent.appendChild(iframe);
};