Skip to content

Commit

Permalink
Update website
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolful committed Nov 28, 2023
1 parent 3c769dc commit c8c4a17
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flutter_service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const RESOURCES = {"manifest.json": "e2f2cd7bda2daaff91b5eb2c0e93b2ef",
"favicon.ico": "57267dcd85a3ce2f29b9c3c9a03ed4d0",
"CNAME": "124e4042fbf152059b5805ece63fc59c",
"404.html": "e69707552a30ee6ade9555e06c50a80a",
"index.html": "7f686a97cf31a48b349c20fde465ba21",
"/": "7f686a97cf31a48b349c20fde465ba21",
"index.html": "53d04ae3f08ded5a3e52486f93397f5a",
"/": "53d04ae3f08ded5a3e52486f93397f5a",
"icons/white_logo_tiny_ps.svg": "9e3160e912a864d2a1f620275fc8bbc7",
"icons/app_logo_header_1024.png": "018b84060db43be6a3f98e2172b312a7",
"icons/Icon-192.png": "f9943b33208092666af48c9a4b9dc6c9",
Expand Down
14 changes: 13 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- Redirect if URL is https://*/invites/inviteCode -->
<script>
const pathName = window.location.pathname;
const isInvites = pathName.startsWith("/invites/");
const isTikTokBrowser = window.navigator.userAgent.includes("BytedanceWebview") || window.navigator.userAgent.includes("musical_ly");
const doesBrowserSupportDynamicLinks = !isTikTokBrowser;
if (isInvites && doesBrowserSupportDynamicLinks) {
const dynamicLink = "https://invites.waveful.app" + pathName.replace("/invites", "");
window.location.replace(dynamicLink);
}
</script>

<!-- Set Flutter Renderer (the html option optimizes download size over performance) -->
<script>
window.flutterWebRenderer = "html";
Expand All @@ -41,7 +53,7 @@
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('flutter_service_worker.js?v=2422767563');
navigator.serviceWorker.register('flutter_service_worker.js?v=1533425973');
});
}
</script>
Expand Down

0 comments on commit c8c4a17

Please sign in to comment.