Skip to content

Commit

Permalink
added iframe to world menu
Browse files Browse the repository at this point in the history
SQUASHED: AUTO-COMMIT-src-client-contextmenu.js,
  • Loading branch information
onsetsu committed Aug 14, 2024
1 parent d996b56 commit 8591ede
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,11 @@ export default class ContextMenu {
lively.setPosition(morph, lively.pt(0,0), "fixed")
this.hide();
}],
["iFrame", async evt => {
const url = "https://www.hpi.uni-potsdam.de/hirschfeld/";
const iframe = await lively.openComponentInWindow('lively-iframe', false, lively.pt(1000, 800))
iframe.setURL(url)
}, undefined, '<i class="fa fa-html5" aria-hidden="true"></i>'],
["X-Ray", async evt => {
var morph = await lively.openPart("WorldMirror")
lively.setClientPosition(morph, lively.getPosition(evt))
Expand Down

0 comments on commit 8591ede

Please sign in to comment.