videomail-client 5.0.1 → 5.0.2
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/js/resource.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import Constants from './constants'
|
|
2
1
|
import superagent from 'superagent'
|
|
3
2
|
|
|
3
|
+
import Constants from './constants'
|
|
4
|
+
|
|
4
5
|
const CACHE_KEY = 'alias'
|
|
5
6
|
|
|
6
7
|
export default function (options) {
|
|
@@ -39,9 +40,12 @@ export default function (options) {
|
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
function fetch(alias, cb) {
|
|
43
|
+
const timezoneId = Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
44
|
+
|
|
42
45
|
superagent
|
|
43
46
|
.get('/videomail/' + alias + '/snapshot')
|
|
44
47
|
.set('Accept', 'application/json')
|
|
48
|
+
.set('Accept-Timezone', timezoneId)
|
|
45
49
|
.set(Constants.SITE_NAME_LABEL, options.siteName)
|
|
46
50
|
.timeout(options.timeouts.connection)
|
|
47
51
|
.end(function (err, res) {
|