Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
window.document.close = function close(...args) {
try {
oldClose.call(document, args);
} catch (e) {
throw e;
} finally {
inject();
reattach();
}
};
}
window.document.close = function close(...args) {
try {
oldClose.call(document, args);
} catch (e) {
throw e;
} finally {
inject();
reattach();
}
};
}