diff options
author | bobzel <zzzman@gmail.com> | 2020-12-02 09:39:46 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-02 09:39:46 -0500 |
commit | 8fdd7fe99ef3360e2693f9abcd9b4fc22096b88b (patch) | |
tree | 89b8a0005604a83852a480e161631109a56a94ad /src/client/views/Main.tsx | |
parent | 3b57c98d83ff99b04723f2c649ca6c42848c29c8 (diff) |
fixed warnings. prevent titles form showing up in presentationView
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r-- | src/client/views/Main.tsx | 4 |
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 |