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
Remove client-side isLoggedIn value
[ProtonMail-WebClient.git]
/
packages
/
docs-core
/
lib
/
Util
/
isDevOrBlack.ts
blob
b560ff582d41924520192b6ea37d733cbc502e5a
1
export function isLocalEnvironment() {
2
return window.location.host.includes('proton.local')
3
}
4
5
export function isDevOrBlack() {
6
return isLocalEnvironment() || window.location.host.endsWith('proton.black')
7
}