FIX: reload on ping
This commit is contained in:
parent
c7317bebec
commit
bc81c37778
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
|
||||
"version": "1.4.1",
|
||||
"version": "1.4.2",
|
||||
"author": "Tony Air <tony@twma.pro>",
|
||||
"license": "MIT",
|
||||
"description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
||||
|
|
|
@ -92,7 +92,7 @@ const MainUI = (($) => {
|
|||
};
|
||||
|
||||
// session ping
|
||||
setInterval(() => {
|
||||
const pingInterval = setInterval(() => {
|
||||
if ($Body.hasClass('is-offline')) {
|
||||
return;
|
||||
}
|
||||
|
@ -106,7 +106,8 @@ const MainUI = (($) => {
|
|||
type: 'POST',
|
||||
complete(data, datastatus) {
|
||||
if (datastatus !== 'success') {
|
||||
W.location.reload(false);
|
||||
clearInterval(pingInterval);
|
||||
//W.location.reload(false);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue