-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (40 loc) · 1.13 KB
/
Copy pathindex.html
File metadata and controls
41 lines (40 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RoleModel Preflight</title>
<!--
Framer injects ?mode= when the plugin is launched inside the host.
Direct browser opens need a default mode so the bundle can load.
Keep this inline script ahead of the module graph.
-->
<script>
(function () {
try {
var q = new URLSearchParams(window.location.search);
var m = q.get("mode");
if (m !== null && m !== "") return;
q.set("mode", "canvas");
var next =
window.location.pathname +
"?" +
q.toString() +
window.location.hash;
if (
next !==
window.location.pathname +
window.location.search +
window.location.hash
) {
window.location.replace(next);
}
} catch (e) {}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>