Skip to content

Commit

Permalink
Fix: Automatic renew session (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirusu400 committed Apr 27, 2023
1 parent fdc115e commit b8aa694
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/routes/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
const renewSession = () => {
// Call extern function
// The extern function defines in HTML
sessionExtensionReq();
const sessionRenewFunction =
typeof(sessionExtensionReq) == 'function' ? sessionExtensionReq :
typeof(sessionExtensionReq1) == 'function' ? sessionExtensionReq1 :
undefined

if (sessionRenewFunction)
sessionRenewFunction();
return;
};

Expand Down

0 comments on commit b8aa694

Please sign in to comment.