UNPKG
@gameon/web
Version:
latest (2.13.0)
2.13.0
2.12.1
2.12.0
2.11.3
2.11.2
2.11.1
2.11.0
2.10.2
2.10.1
2.10.0
2.9.1
2.9.0
2.8.1
2.8.0
2.7.3
2.7.2
2.7.1
2.7.0
2.6.1
2.6.0
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.9
2.2.8
2.2.7
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.3
1.0.2
1.0.1
1.0.0
0.0.40
0.0.39
0.0.38
0.0.37
0.0.36
0.0.35
0.0.34
0.0.33
0.0.32
0.0.31
0.0.30
0.0.29
0.0.28
0.0.27
0.0.26
0.0.25
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Chat clients for web
github.com/tuul-tech/web-chat-clients
tuul-tech/web-chat-clients
@gameon/web
/
web-components
/
bot-client
/
breakpoints.ts
15 lines
(11 loc)
•
257 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export
enum
Breakpoint
{
SMALL
=
480
,
LARGEST
, }
export
function
getCurrentBreakpoint
(
):
Breakpoint
{
const
currentWidth =
window
.
innerWidth
;
if
(currentWidth <=
Breakpoint
.
SMALL
) {
return
Breakpoint
.
SMALL
; }
return
Breakpoint
.
LARGEST
; }