File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1
- ( ( ) => {
1
+ ( function ( ) {
2
2
const timeoutSeconds = 50 ;
3
3
const controller = new AbortController ( ) ;
4
- const timeoutId = setTimeout ( ( ) => controller . abort ( ) , timeoutSeconds * 1000 ) ;
4
+ const timeoutId = setTimeout ( function ( ) {
5
+ controller . abort ( ) ;
6
+ } , timeoutSeconds * 1000 ) ;
5
7
6
8
fetch ( "/screen/poll/" )
7
- . then ( resp => {
9
+ . then ( function ( resp ) {
8
10
if ( ! resp . ok ) {
9
11
window . location . href = '/screen/' ;
10
12
return Promise . reject ( "Response not OK: " + resp . status ) ;
11
13
}
12
14
return resp . text ( ) ;
13
15
} )
14
- . then ( ( url ) => {
16
+ . then ( function ( url ) {
15
17
window . location . href = url ;
16
18
} )
17
- . catch ( err => {
18
- window . location . href = '/screen/' ;
19
+ . catch ( function ( err ) {
20
+ window . location . href = '/screen/' ;
19
21
} )
20
- . then ( ( ) => {
22
+ . then ( function ( ) {
21
23
clearTimeout ( timeoutId ) ;
22
24
} )
23
25
;
24
- } ) ( ) ;
26
+ } ) ) ( ) ;
Original file line number Diff line number Diff line change 7
7
<title >DSL Door 點心樂部門</title >
8
8
<meta http-equiv =" Content-Type" content =" text/html; charset=utf-8" />
9
9
<link rel =" stylesheet" type =" text/css" href =" /static/screen/style.css" >
10
+
11
+ <!-- Add to home screen -->
12
+ <meta name =" mobile-web-app-capable" content =" yes" >
10
13
</head >
11
14
<body >
12
15
<main >
16
19
17
20
</main >
18
21
</body >
19
- <script type =" text/javascript" src =" https://cdnjs.cloudflare.com/ajax/libs/fetch/3.6.2/fetch.min.js" ></script >
22
+ <
script type =
" text/javascript" src =
" https://cdn.jsdelivr.net/npm/[email protected] /fetch.min.js" ></
script >
23
+ <
script type =
" text/javascript" src =
" https://cdn.jsdelivr.net/npm/[email protected] /dist/umd-polyfill.min.js" ></
script >
20
24
<script type =" text/javascript" src =" /static/screen/app.js" ></script >
21
25
</html >
You can’t perform that action at this time.
0 commit comments