Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const iframe = document.createElement("iframe");
- document.body.appendChild(iframe);
- const timeout = iframe.contentWindow.setTimeout;
- document.body.removeChild(iframe);
- const plainTimeout = timeout.bind(window);
- export const runOutsideZone =
- (fn, delay) => plainTimeout(fn, delay);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement