Skip to content

Commit

Permalink
add devmode and padding to iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
MCarlomagno committed Dec 4, 2024
1 parent d0e8cd1 commit d1d243b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ui/src/DefenderDeployModal.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script lang="ts">
import { fly } from 'svelte/transition';
const devMode = window.location.href.includes('localhost');
export let isOpen = false;
let loaded = false;
Expand All @@ -25,8 +27,8 @@
<iframe
id="defender-deploy"
title="Defender Deploy"
src="https://defender-deploy-wizard.netlify.app/"
class={`flex-grow border-none ${!loaded ? 'hidden' : ''}`}
src={devMode ? 'http://localhost:5173' : 'https://defender-deploy-wizard.netlify.app/'}
class={`flex-grow border-none mt-12 ${!loaded ? 'hidden' : ''}`}
on:load={handleLoad}
/>
</div>
Expand Down

0 comments on commit d1d243b

Please sign in to comment.