12 lines
418 B
JavaScript
12 lines
418 B
JavaScript
|
document.addEventListener('readystatechange', event => {
|
||
|
if (document.readyState === "complete") {
|
||
|
const watch = document.querySelector('.main-watch');
|
||
|
if (watch) {
|
||
|
setTimeout(() => {
|
||
|
fetch(`https://qa.softcad.pw/${watch.dataset.type}/view/${document.location.hostname}/${watch.dataset.id}`)
|
||
|
.catch((err) => {});
|
||
|
}, 800);
|
||
|
}
|
||
|
}
|
||
|
});
|