Skip to content

Commit

Permalink
Use iframe resizer
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoperdomo committed Apr 12, 2024
1 parent 24e1ae8 commit c810c3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified python/__pycache__/app.cpython-312.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ def static_embed():
}
token = jwt.encode(payload, METABASE_EMBEDDING_SECRET, algorithm="HS256")
iframeUrl = urljoin(METABASE_SITE_URL, "/embed/dashboard/" + token + "#bordered=true&titled=true")
return f'<script src="http://localhost:4000/app/iframeResizer.js"></script><iframe src="{iframeUrl}" frameborder="0" width="800" height="600" onload="iFrameResize({{}}, this)" allowtransparency></iframe>'
return f'''<script src="{METABASE_SITE_URL}/app/iframeResizer.js"></script>
<iframe src="{iframeUrl}" frameborder="0" width="800" height="600" onload="iFrameResize({{}}, this)" allowtransparency></iframe>
'''

0 comments on commit c810c3a

Please sign in to comment.