mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
7 lines
605 B
JavaScript
7 lines
605 B
JavaScript
webpackJsonp([1],[function(n,e,t){"use strict"
|
|
function i(n){return n&&n.__esModule?n:{"default":n}}var s=t(1),a=i(s)
|
|
a["default"].entwine("ss.ping",function(n){n(".cms-container").entwine({PingIntervalSeconds:300,onadd:function e(){this._setupPinging(),this._super()},_setupPinging:function t(){var e=function t(n,e){(n.status>400||0==n.responseText)&&(window.open("Security/login")?alert("Please log in and then try again"):alert("Please enable pop-ups for this site"))
|
|
|
|
}
|
|
setInterval(function(){n.ajax({url:"Security/ping",global:!1,type:"POST",complete:e})},1e3*this.getPingIntervalSeconds())}})})}])
|