0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/experience/src/index.html

34 lines
988 B
HTML
Raw Normal View History

2022-02-17 18:25:54 -05:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title></title>
<!--Preload well-known settings API-->
<script>
const { search } = window.location;
const isPreview = search.includes('preview');
// Preview mode does not query sign-in-exp and phrases
const preLoadLinks = isPreview ? [] : ['/api/.well-known/sign-in-exp', '/api/.well-known/phrases'];
// Append preload well-known settings API links to head
preLoadLinks.forEach((linkUrl) => {
const link = document.createElement('link');
link.rel = 'preload';
link.href = linkUrl
link.as = 'fetch';
link.crossOrigin = 'anonymous';
document.head.appendChild(link);
});
</script>
2022-02-17 18:25:54 -05:00
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="app"></div>
<script type="module" src="index.tsx"></script>
</body>
</html>