vector-im-hydrogen-web/src/ui/web/WebPlatform.js

21 lines
496 B
JavaScript
Raw Normal View History

export const WebPlatform = {
2019-06-26 22:31:36 +02:00
get minStorageKey() {
// for indexeddb, we use unsigned 32 bit integers as keys
return 0;
},
get middleStorageKey() {
// for indexeddb, we use unsigned 32 bit integers as keys
return 0x7FFFFFFF;
},
2019-06-26 22:31:36 +02:00
get maxStorageKey() {
// for indexeddb, we use unsigned 32 bit integers as keys
return 0xFFFFFFFF;
},
2019-06-28 00:52:54 +02:00
delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
}