first commit
This commit is contained in:
1
media/plg_system_schedulerunner/js/run-schedule.min.js
vendored
Normal file
1
media/plg_system_schedulerunner/js/run-schedule.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
if(!window.Joomla)throw new Error("Joomla API was not properly initialised");const initScheduler=()=>{const e=Joomla.getOptions("plg_system_schedulerunner"),t=Joomla.getOptions("system.paths"),o=1e3*(e&&e.interval?parseInt(e.interval,10):300),n=`${t?`${t.root}/index.php`:window.location.pathname}?option=com_ajax&format=raw&plugin=RunSchedulerLazy&group=system`;setInterval((()=>fetch(n,{method:"GET"})),o),fetch(n,{method:"GET"})};(e=>{e.addEventListener("DOMContentLoaded",(()=>{initScheduler()}))})(document);
|
||||
Reference in New Issue
Block a user