Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit a90ce50

Browse files
feat: create app manifest for pwa detection
1 parent e7d425a commit a90ce50

File tree

4 files changed

+348
-347
lines changed

4 files changed

+348
-347
lines changed

src/html/index.html

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
<html>
2-
<head>
3-
<title>RuneScape 2</title>
2+
<head>
3+
<title>RuneScape 2</title>
44

5-
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
6-
<meta http-equiv="Pragma" content="no-cache" />
7-
<meta http-equiv="Expires" content="0" />
8-
<meta name="viewport" content="width=device-width, initial-scale = 0.86, maximum-scale=3.0, minimum-scale=0.86">
5+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
6+
<meta http-equiv="Pragma" content="no-cache" />
7+
<meta http-equiv="Expires" content="0" />
8+
<meta name="viewport" content="width=device-width, initial-scale = 0.86, maximum-scale=3.0, minimum-scale=0.86">
99

10-
<link rel="icon" type="image/x-icon" href="favicon.ico">
10+
<link rel="icon" type="image/x-icon" href="favicon.ico">
11+
<link rel="manifest" href="/manifest.json">
1112

12-
<style>
13-
body {
14-
margin: 0;
15-
padding: 0;
16-
color: #fff;
17-
background-color: #000;
18-
}
13+
<style>
14+
body {
15+
margin: 0;
16+
padding: 0;
17+
color: #fff;
18+
background-color: #000;
19+
}
1920

20-
canvas {
21-
display: block;
22-
margin: 0 auto;
21+
canvas {
22+
display: block;
23+
margin: 0 auto;
2324

24-
touch-action: none;
25-
-webkit-touch-callout: none;
26-
-webkit-user-select: none;
27-
-khtml-user-select: none;
28-
-moz-user-select: none;
29-
-ms-user-select: none;
30-
user-select: none;
31-
outline: none;
32-
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
33-
z-index: -1;
34-
}
35-
</style>
36-
</head>
37-
<body>
38-
<canvas id="canvas" width="789" height="532"></canvas>
39-
</body>
25+
touch-action: none;
26+
-webkit-touch-callout: none;
27+
-webkit-user-select: none;
28+
-khtml-user-select: none;
29+
-moz-user-select: none;
30+
-ms-user-select: none;
31+
user-select: none;
32+
outline: none;
33+
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
34+
z-index: -1;
35+
}
36+
</style>
37+
</head>
38+
<body>
39+
<canvas id="canvas" width="789" height="532"></canvas>
40+
</body>
4041
</html>

src/public/favicon.png

15.3 KB
Loading

src/public/manifest.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "2004Scape",
3+
"icons": [
4+
{
5+
"src": "/favicon.png",
6+
"type": "image/png",
7+
"sizes": "144x144"
8+
}
9+
],
10+
"id": "/",
11+
"start_url": "/",
12+
"background_color": "#212121",
13+
"display": "minimal-ui",
14+
"scope": "/",
15+
"theme_color": "#212121"
16+
}

0 commit comments

Comments
 (0)