mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
FIX: reload on ping
This commit is contained in:
parent
c7317bebec
commit
bc81c37778
2
dist/js/app.js
vendored
2
dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/app.js.map
vendored
2
dist/js/app.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
|
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"author": "Tony Air <tony@twma.pro>",
|
"author": "Tony Air <tony@twma.pro>",
|
||||||
"license": "MIT",
|
"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.",
|
"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
|
// session ping
|
||||||
setInterval(() => {
|
const pingInterval = setInterval(() => {
|
||||||
if ($Body.hasClass('is-offline')) {
|
if ($Body.hasClass('is-offline')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -106,7 +106,8 @@ const MainUI = (($) => {
|
|||||||
type: 'POST',
|
type: 'POST',
|
||||||
complete(data, datastatus) {
|
complete(data, datastatus) {
|
||||||
if (datastatus !== 'success') {
|
if (datastatus !== 'success') {
|
||||||
W.location.reload(false);
|
clearInterval(pingInterval);
|
||||||
|
//W.location.reload(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user