Skip to content

Commit

Permalink
Fix/no new windows iframe (UnchartedBull#753)
Browse files Browse the repository at this point in the history
* reformat + hide sort

* fix electron build

* prevent new windows from opening
  • Loading branch information
UnchartedBull authored and kantlivelong committed May 5, 2021
1 parent 329bd02 commit f82be34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/control/control.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<div class="i-frame" id="iFrame">
loading website ...
<iframe class="i-frame__content" [src]="iFrameURL | url" onload="this.style.opacity=1;"
<iframe
class="i-frame__content"
[src]="iFrameURL | url"
onload="this.style.opacity=1;"
sandbox="allow-forms, allow-modals, allow-popups, allow-same-origin, allow-scripts, allow-top-navigation-by-user-activation"
>That shouldn't happen ...</iframe
>
<img src="assets/error.svg" class="i-frame__close" (click)="hideIFrame()" />
Expand Down

0 comments on commit f82be34

Please sign in to comment.