orderiom-api-package 0.4.29 → 0.4.30
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/package.json +1 -1
- package/src/common.js +7 -5
package/package.json
CHANGED
package/src/common.js
CHANGED
|
@@ -2,11 +2,13 @@ import axios from "axios";
|
|
|
2
2
|
|
|
3
3
|
export const weekdays = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
4
4
|
|
|
5
|
-
export const restaurantIdEnv = () =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export const restaurantIdEnv = () => {
|
|
6
|
+
return process.env.VUE_APP_RESTAURANT_ID
|
|
7
|
+
? parseInt(process.env.VUE_APP_RESTAURANT_ID)
|
|
8
|
+
: window.dynamicData && window.dynamicData.VUE_APP_RESTAURANT_ID
|
|
9
|
+
? parseInt(window.dynamicData.VUE_APP_RESTAURANT_ID)
|
|
10
|
+
: null;
|
|
11
|
+
}
|
|
10
12
|
|
|
11
13
|
export function commonErrorCallback(unknownErrorMessage = 'Something went wrong'){
|
|
12
14
|
return error => {
|