Skip to content

Commit 317281b

Browse files
committed
Serve favicon.ico locally for w4 run
Previously favicon.ico was being requested from wasm4.org when developing locally. This won't work if the user is offline or the website goes down, etc. It also doesn't work with secure CORS headers, as it is served from another domain.
1 parent 7246ab8 commit 317281b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

runtimes/web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
6-
<link rel="shortcut icon" href="https://wasm4.org/img/favicon.ico">
6+
<link rel="shortcut icon" href="favicon.ico">
77
<title>WASM-4 web runtime dev</title>
88
</head>
99
<body>

runtimes/web/public/favicon.ico

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../site/static/img/favicon.ico

runtimes/web/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
6-
<link rel="shortcut icon" href="https://wasm4.org/img/favicon.ico">
6+
<link rel="shortcut icon" href="favicon.ico">
77
<title>WASM-4 Cart</title>
88
<link rel="stylesheet" href="wasm4.css">
99
</head>

0 commit comments

Comments
 (0)