Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_this.clean.register('destroyWindow', function () {
iframeWatcher.cancel();
elementWatcher.cancel();
cleanUpWindow(win);
destroyElement(frame);
});_this4.clean.register('destroyWindow', function () {
win.close();
cleanUpWindow(win);
}); this.clean.register(() => cleanUpWindow(win));this.clean.register(() => {
closeWindow(win);
cleanUpWindow(win);
});