fleetmap-reports 1.0.272 → 1.0.276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/util/utils.js CHANGED
@@ -55,10 +55,10 @@ async function getImgFromUrl(hostname) {
55
55
  }
56
56
  }
57
57
 
58
- function isClientSide() { typeof window !== "undefined" }
58
+ function isClientSide() { return (typeof window !== "undefined") }
59
59
 
60
60
  function convertToLocaleString(value, lang, timezone){
61
- if(isClientSide){
61
+ if(isClientSide()){
62
62
  return new Date(value).toLocaleString()
63
63
  } else {
64
64
  return new Date(value).toLocaleString(lang, {
@@ -1,7 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <ScalaCodeStyleSettings>
4
- <option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
5
- </ScalaCodeStyleSettings>
6
- </code_scheme>
7
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
- </state>
5
- </component>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <file url="file://$PROJECT_DIR$" libraries="{Node.js Core}" />
5
- </component>
6
- </project>