Skip to content

Commit

Permalink
Serve favicon.ico locally for w4 run
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
majaha committed Dec 20, 2024
1 parent 7246ab8 commit 317281b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtimes/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<link rel="shortcut icon" href="https://wasm4.org/img/favicon.ico">
<link rel="shortcut icon" href="favicon.ico">
<title>WASM-4 web runtime dev</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions runtimes/web/public/favicon.ico
2 changes: 1 addition & 1 deletion runtimes/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<link rel="shortcut icon" href="https://wasm4.org/img/favicon.ico">
<link rel="shortcut icon" href="favicon.ico">
<title>WASM-4 Cart</title>
<link rel="stylesheet" href="wasm4.css">
</head>
Expand Down

0 comments on commit 317281b

Please sign in to comment.