Skip to content

Commit e5e9e56

Browse files
committed
fix(sno-mp3): tmp disable useManifestPWA
tmp disable useManifestPWA
1 parent b02df7c commit e5e9e56

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

app/page.tsx

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useSearchParam } from "react-use";
99
import sflow, { sf } from "sflow";
1010
import useSWR from "swr";
1111
import TimeAgo from "timeago-react";
12-
import useManifestPWA from "use-manifest-pwa";
12+
// import useManifestPWA from "use-manifest-pwa";
1313
import { useSnapshot } from "valtio";
1414
import { persistState } from "./persistState";
1515
import { readWorkflowInfo, setWorkflowInfo } from "./utils/exif";
@@ -18,23 +18,24 @@ import { readWorkflowInfo, setWorkflowInfo } from "./utils/exif";
1818
* @author snomiao <[email protected]> 2024
1919
*/
2020
export default function Home() {
21-
useManifestPWA({
22-
icons: [
23-
{
24-
src: "/favicon.png",
25-
sizes: "192x192",
26-
type: "image/png",
27-
},
28-
{
29-
src: "/favicon.png",
30-
sizes: "512x512",
31-
type: "image/png",
32-
},
33-
],
34-
name: "ComfyUI Embedded Workflow Editor",
35-
short_name: "CWE",
36-
start_url: globalThis.window?.location.origin ?? "/",
37-
});
21+
// todo: enable this in another PR
22+
// useManifestPWA({
23+
// icons: [
24+
// {
25+
// src: "/favicon.png",
26+
// sizes: "192x192",
27+
// type: "image/png",
28+
// },
29+
// {
30+
// src: "/favicon.png",
31+
// sizes: "512x512",
32+
// type: "image/png",
33+
// },
34+
// ],
35+
// name: "ComfyUI Embedded Workflow Editor",
36+
// short_name: "CWE",
37+
// start_url: globalThis.window?.location.origin ?? "/",
38+
// });
3839

3940
const snap = useSnapshot(persistState);
4041
const snapSync = useSnapshot(persistState, { sync: true });

0 commit comments

Comments
 (0)