Skip to content

Commit

Permalink
Progressive web app stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sz3 committed Aug 30, 2023
1 parent c22c259 commit d25cd4d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
Binary file added web/icon-192x192.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 web/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<title>Cimbar Encoder</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="manifest" href="pwa.json">
</head>
<body>

Expand Down
13 changes: 13 additions & 0 deletions web/pwa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"lang": "en",
"dir": "ltr",
"name": "Cimbar Encoder",
"short_name": "cimbar.org",
"icons": [{"src":"icon-192x192.png","sizes":"192x192","type":"image/png"},{"src":"icon-512x512.png","sizes":"512x512","type":"image/png"}],
"scope": "/",
"start_url": "index.html",
"display": "fullscreen",
"theme_color": "aliceblue",
"background_color": "black"
}

5 changes: 3 additions & 2 deletions web/sw.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

var _cacheName = 'cimbar-js-v0.5.8.c';
var _cacheName = 'cimbar-js-v0.5.13';
var _cacheFiles = [
'/',
'/index.html',
'/cimbar_js.js',
'/cimbar_js.wasm',
'/favicon.ico',
'/main.js'
'/main.js',
'/pwa.json'
];

// fetch files
Expand Down

0 comments on commit d25cd4d

Please sign in to comment.