Skip to content

Commit

Permalink
Update Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepChef committed Nov 23, 2024
1 parent 7d4ecc8 commit e4b1d02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
return this._attachShadow({ mode: "open" });
};
</script>
<script type="module" crossorigin src="./assets/index-BQULPHP8.js"></script>
<script type="module" crossorigin src="./assets/index-vHVaBdQA.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BgJwclCu.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion docs/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import App from "./App.vue";
import { setColorScheme } from "mdui/functions/setColorScheme.js";
import Card from "./components/MdCard.vue";

window.addEventListener("beforeinstallprompt", (e) => {
e.preventDefault();
window.deferredPrompt = e;
});

const app = createApp(App);
setColorScheme("#09355b");
app.component("Card", Card);
Expand Down

0 comments on commit e4b1d02

Please sign in to comment.