mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Fixing all eslint's reported error
This commit is contained in:
@@ -9,5 +9,5 @@ export default function getCurrentTime(): moment.Moment {
|
||||
if (typeof window === 'undefined' || !window) { return getDefault(); }
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
|
||||
return searchParams.has('currentTime') ? moment(searchParams.get('currentTime')!) : getDefault();
|
||||
return searchParams.has('currentTime') ? moment(searchParams.get('currentTime')) : getDefault();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user