aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/Main.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r--src/client/views/Main.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index 34bfa8e77..92f6ae028 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -27,9 +27,9 @@ AssignAllExtensions();
const startload = (document as any).startLoad;
const loading = Date.now() - (startload ? Number(startload) : (Date.now() - 3000));
console.log("Load Time = " + loading);
- var d = new Date();
+ const d = new Date();
d.setTime(d.getTime() + (100 * 24 * 60 * 60 * 1000));
- var expires = "expires=" + d.toUTCString();
+ const expires = "expires=" + d.toUTCString();
document.cookie = `loadtime=${loading};${expires};path=/`;
ReactDOM.render(<MainView />, document.getElementById('root'));
})(); \ No newline at end of file