UNPKG
mtproton
Version:
latest (6.0.0)
6.0.0
5.9.0
Telegram API JS (MTProto) client library for browser and nodejs
mtproton
/
envs
/
browser
/
get-local-storage.js
14 lines
(11 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function
getLocalStorage
(
) {
return
{
set
(
key, value
) {
return
window
.
localStorage
.
setItem
(key, value); },
get
(
key
) {
return
window
.
localStorage
.
getItem
(key); }, }; }
module
.
exports
= getLocalStorage;