repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update selected item color in Pass menu
[ProtonMail-WebClient.git]
/
packages
/
cross-storage
/
lib
/
support.ts
blob
90b4902ef7fcc459c1ec07bb99f1d0f86f3df7aa
1
export const setTestKeyValue = (window: Window) => {
2
try {
3
window.localStorage.setItem('cs', '1');
4
} catch (e: any) {
5
return undefined;
6
}
7
};
8
9
export const getIsSupported = (value: any) => {
10
return value === '1';
11
};
12
13
export const getTestKeyValue = (window: Window) => {
14
try {
15
return window.localStorage.getItem('cs');
16
} catch (e: any) {
17
return undefined;
18
}
19
};