Spaces:
Runtime error
Runtime error
disable resizer
Browse files- frontend/src/app.html +9 -0
frontend/src/app.html
CHANGED
@@ -7,6 +7,15 @@
|
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
8 |
<script
|
9 |
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
%sveltekit.head%
|
11 |
</head>
|
12 |
<!-- <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black"> -->
|
|
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
8 |
<script
|
9 |
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
|
10 |
+
<script>
|
11 |
+
if ('parentIFrame' in window) {
|
12 |
+
window.parentIFrame.autoResize(false);
|
13 |
+
window._PAGE_INFO = null
|
14 |
+
window.parentIFrame.getPageInfo((info) => {
|
15 |
+
window._PAGE_INFO = info
|
16 |
+
});
|
17 |
+
}
|
18 |
+
</script>
|
19 |
%sveltekit.head%
|
20 |
</head>
|
21 |
<!-- <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black"> -->
|