//1// Copyright (c) 2006-2025 Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56/**7* Sometimes there are timing issues and looks like beef_init8* is not called at all (always in cross-origin situations,9* for example calling the hook with jquery getScript,10* or sometimes with event handler injections).11*12* To fix this, we call again beef_init after 1 second.13* Cheers to John Wilander that discussed this bug with me at OWASP AppSec Research Greece14* antisnatchor15* @namespace beef.timeout16*/1718/**19* @memberof beef.timeout20* @function setTimeout21*/22setTimeout(beef_init, 1000);232425