mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
fix some issues
This commit is contained in:
1 parent
2e33deffff
commit
26e85ef5d0
3 files changed
+2
-6
No files matched your search
@@ -37,10 +37,6 @@ module.exports = {
|
||||
'static/**/*' // Precache all static files by default
|
||||
],
|
||||
runtimeCaching: [
|
||||
{
|
||||
handler: 'fastest',
|
||||
urlPattern: /[.](png|jpg|css)/
|
||||
},
|
||||
{
|
||||
handler: "networkFirst",
|
||||
urlPattern: /^https?.*/
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ export default class Main extends PureComponent {
|
||||
${code}`;
|
||||
};
|
||||
|
||||
async componentDidMount() {
|
||||
componentDidMount() {
|
||||
if ("serviceWorker" in navigator) {
|
||||
navigator.serviceWorker
|
||||
.register("/service-worker.js")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "Transform",
|
||||
"short_name": "Transform",
|
||||
"theme_color": "#2196f3",
|
||||
"background_color": "#2196f3",
|
||||
"background_color": "#424242",
|
||||
"display": "standalone",
|
||||
"Scope": "/",
|
||||
"start_url": "/",
|
||||
|
||||
Reference in new issue
Block a user