CoreFiles by mySites.guru
keepalive.min.js4 lines, 741 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
08e02523a40f3d0b1e0e3b0bd1a0f013
sha1
9f10654c2f49ca104ca0449def6eec3f06bd19c0
sha256
983c4e677c121da92edce183d530881200e0ce545ddca1174bdb3eedb7588619
/**
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */if(!window.Joomla)throw new Error("Joomla API was not properly initialised");const keepAliveOptions=Joomla.getOptions("system.keepalive"),keepAliveInterval=keepAliveOptions&&keepAliveOptions.interval?parseInt(keepAliveOptions.interval,10):45*1e3;let keepAliveUri=keepAliveOptions&&keepAliveOptions.uri?keepAliveOptions.uri.replace(/&amp;/g,"&"):"";if(keepAliveUri===""){const e=Joomla.getOptions("system.paths");keepAliveUri=`${e?`${e.root}/index.php`:window.location.pathname}?option=com_ajax&format=json`}setInterval(()=>fetch(keepAliveUri,{method:"POST"}),keepAliveInterval);

The same content is in 176 releases, Joomla 4.4.1-rc1 to 6.3.0-alpha1. See them all, or every version of this file.