Skip to content

Commit

Permalink
Fix title flashing from SketchPad to DartPad (#2737)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Nov 30, 2023
1 parent 3a820d1 commit 9268803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
19 changes: 3 additions & 16 deletions pkgs/sketch_pad/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,22 @@
<html>

<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="An experimental redux of the DartPad UI.">
<meta name="description" content="An online Dart editor with support for console and Flutter apps.">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="SketchPad">
<meta name="apple-mobile-web-app-title" content="DartPad">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" />

<title>SketchPad</title>
<title>DartPad</title>
<link rel="manifest" href="manifest.json">

<script>
Expand Down
6 changes: 3 additions & 3 deletions pkgs/sketch_pad/web/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "SketchPad",
"short_name": "SketchPad",
"name": "DartPad",
"short_name": "DartPad",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "An experimental redux of the DartPad UI.",
"description": "An online Dart editor with support for console and Flutter apps.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
Expand Down

0 comments on commit 9268803

Please sign in to comment.