projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17782: Fixes assorted compile warnings.
[arvados-workbench2.git]
/
src
/
views-components
/
auto-logout
/
auto-logout.tsx
diff --git
a/src/views-components/auto-logout/auto-logout.tsx
b/src/views-components/auto-logout/auto-logout.tsx
index 9a8299b25ca3b351f6c3f9ee161f9e6b67bb5d0c..a2d71d08dc406bf2d1baf96d13ce2929f5291c28 100644
(file)
--- a/
src/views-components/auto-logout/auto-logout.tsx
+++ b/
src/views-components/auto-logout/auto-logout.tsx
@@
-63,7
+63,7
@@
export const AutoLogoutComponent = (props: AutoLogoutProps) => {
return () => {
window.removeEventListener('storage', handleStorageEvents);
};
return () => {
window.removeEventListener('storage', handleStorageEvents);
};
- }
, []
);
+ });
const handleStorageEvents = (e: StorageEvent) => {
if (e.key === LAST_ACTIVE_TIMESTAMP) {
const handleStorageEvents = (e: StorageEvent) => {
if (e.key === LAST_ACTIVE_TIMESTAMP) {
@@
-90,7
+90,7
@@
export const AutoLogoutComponent = (props: AutoLogoutProps) => {
const handleOnAction = () => {
// Notify the other tabs there was some activity.
const handleOnAction = () => {
// Notify the other tabs there was some activity.
- const now = (new Date).getTime();
+ const now = (new Date
()
).getTime();
localStorage.setItem(LAST_ACTIVE_TIMESTAMP, now.toString());
};
localStorage.setItem(LAST_ACTIVE_TIMESTAMP, now.toString());
};