FIX: reload on ping

This commit is contained in:
Tony Air 2019-12-18 05:33:17 +07:00
parent c7317bebec
commit bc81c37778
4 changed files with 6 additions and 5 deletions

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

2
dist/js/app.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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.",

View File

@ -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);
}
},
});