pict-rs-proxy/static/uploads.js
Aode (Lion) 903134c7c7
All checks were successful
continuous-integration/drone/push Build is passing
Use pict-rs's background uploading feature
2022-05-02 20:38:46 -05:00

12 lines
315 B
JavaScript

(function() {
function reloadOnComplete() {
if (document.readyState === 'complete') {
// Do not use window.reload() because it's bugged on firefox
window.location.href = window.location.href;
}
}
document.addEventListener('readystatechange', reloadOnComplete);
reloadOnComplete();
})()