Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update packages/widgets/src/routes/+page.svelte
Browse files
packages/widgets/src/routes/+page.svelte
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
* If we are in an iframe, we need to open the auth page in a new tab
|
| 19 |
* to avoid issues with third-party cookies in a space
|
| 20 |
*/
|
| 21 |
-
const isIframe =
|
| 22 |
|
| 23 |
onMount(() => {
|
| 24 |
if (!data.supportsOAuth) {
|
|
|
|
| 18 |
* If we are in an iframe, we need to open the auth page in a new tab
|
| 19 |
* to avoid issues with third-party cookies in a space
|
| 20 |
*/
|
| 21 |
+
const isIframe = browser && window.self !== window.parent;
|
| 22 |
|
| 23 |
onMount(() => {
|
| 24 |
if (!data.supportsOAuth) {
|