mirror of
https://github.com/element-hq/element-call.git
synced 2026-06-04 19:01:38 +00:00
25a6cefa34
Add Promise.withResolvers polyfill for older WebViews (Chrome < 119)
59 lines
1.7 KiB
HTML
59 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
|
|
<% if (packageType === "full") { %>
|
|
<link rel="icon" type="image/svg+xml" href="favicon.png" />
|
|
<link rel="preload" href="/config.json" as="fetch" />
|
|
<% } %>
|
|
|
|
<meta
|
|
name="viewport"
|
|
content="viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0"
|
|
/>
|
|
<title><%- brand %></title>
|
|
<script>
|
|
window.global = window;
|
|
</script>
|
|
<!-- Polyfill for Chrome < 119 (Huawei WebView, etc.) -->
|
|
<script>
|
|
if (!Promise.withResolvers) {
|
|
Promise.withResolvers = function () {
|
|
var resolve, reject;
|
|
var promise = new Promise(function (a, b) {
|
|
resolve = a;
|
|
reject = b;
|
|
});
|
|
return { promise: promise, resolve: resolve, reject: reject };
|
|
};
|
|
}
|
|
</script>
|
|
|
|
<% if (packageType === "full") { %>
|
|
<!-- Open graph meta tags -->
|
|
|
|
<meta property="og:title" content="<%- brand %>" />
|
|
<meta
|
|
property="og:description"
|
|
content="You're invited to join a call on <%- brand %>"
|
|
/>
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:image" content="favicon.png" />
|
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content="<%- brand %>" />
|
|
<meta
|
|
name="twitter:description"
|
|
content="You're invited to join a call on <%- brand %>"
|
|
/>
|
|
<meta name="twitter:image" content="favicon.png" />
|
|
<% } %>
|
|
</head>
|
|
|
|
<!-- The default class is: .no-theme {display: none}. It will be overwritten once the app is loaded. -->
|
|
<body class="no-theme">
|
|
<div id="root"></div>
|
|
</body>
|
|
</html>
|