Skip to content

Commit

Permalink
fix(ui): 🐛 fix PWA displaying blank page
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Feb 1, 2024
1 parent 0c94c01 commit b154d23
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 32 deletions.
Binary file added public/icons/dash-incubator-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/dash-incubator-square.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 3 additions & 26 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,44 +23,21 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="theme-color" content="#111921">
<meta name="msapplication-TileColor" content="#0C1217">
<meta name="msapplication-TileImage" content="../public/icons/dash-d-rounded-square-250.png">
<meta name="msapplication-TileImage" content="../public/icons/dash-incubator-circle.png">
<meta name="msapplication-config" content="../public/icons/browserconfig.xml">

<link rel="icon" type="image/png" href="../public/favicon.png">
<link rel="shortcut icon" href="../public/favicon.png">
<link rel="manifest" href="./manifest.webmanifest?v=0.0.0" crossorigin="use-credentials">

<link rel="icon" type="image/png" sizes="250x250" href="../public/icons/dash-d-rounded-square-250.png">
<link rel="apple-touch-icon" sizes="250x250" href="../public/icons/dash-d-rounded-square-250.png">
<link rel="icon" type="image/png" sizes="176x176" href="../public/icons/dash-incubator-circle.png">
<link rel="apple-touch-icon" sizes="176x176" href="../public/icons/dash-incubator-circle.png">
<link rel="stylesheet" type="text/css" media="screen" href="./index.css?v=0.0.0">
</head>
<body class="nt">

<main id="app"></main>

<script type="text/javascript" async>
// (function invertTheme(selector) {
// let theme = JSON.parse(localStorage.getItem('theme'))

// if (selector) {
// document.querySelector(selector)?.
// addEventListener('click', event => {
// event.preventDefault()
// theme = !theme
// localStorage.setItem('theme', theme)
// document.documentElement.classList.toggle('it')
// })
// }
// })('nav a.theme')

// if ('serviceWorker' in navigator) {
// navigator.serviceWorker
// .register(`sw.js`)
// .then(function () {
// console.log("Service Worker Registered");
// });
// }
</script>
<script type="importmap">
{
"imports": {
Expand Down
12 changes: 6 additions & 6 deletions src/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
"name": "Dash Incubator Wallet",
"short_name": "diwui",
"description": "A Graphical User Interface (GUI) for DashWallet.js",
"start_url": "/wallet-ui/",
"scope": "/wallet-ui/",
"start_url": "/",
"scope": "/",
"dir": "auto",
"lang": "en-US",
"display": "standalone",
"orientation": "portrait",
"background_color": "#eeeeee",
"background_color": "#0c1217",
"theme_color": "#111921",
"icons": [
{
"src": "../public/icons/dash-d-rounded-square-250.png",
"sizes": "250x250",
"src": "/public/icons/dash-incubator-circle.png",
"sizes": "176x176",
"type": "image/png"
}
],
"protocol_handlers": [
{
"protocol": "web+dash",
"url": "/wallet-ui/contact?to=%s"
"url": "/contact?to=%s"
}
]
}

0 comments on commit b154d23

Please sign in to comment.