fleetmap-reports 1.0.817 → 1.0.818
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/generated.pdf +0 -0
- package/package.json +1 -1
- package/src/trip-report.js +1 -1
package/generated.pdf
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/trip-report.js
CHANGED
|
@@ -272,7 +272,7 @@ async function exportTripReportToPDF (userData, reportData) {
|
|
|
272
272
|
|
|
273
273
|
const timezone = userData.user.attributes.timezone
|
|
274
274
|
const translations = getTranslations(userData)
|
|
275
|
-
const lang = userData.user.attributes.lang || (
|
|
275
|
+
const lang = userData.user.attributes.lang || (isClientSide() && navigator.language)
|
|
276
276
|
const tripsData = userData.byDriver ? reportData.drivers : reportData.devices
|
|
277
277
|
|
|
278
278
|
const headers = [
|