File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ class WMWindow extends EventTarget implements Process {
9696 public app ?: App ,
9797 ) {
9898 super ( ) ;
99+ //@ts -expect-error
100+ this . deactivateFrames = deactivateFrames ;
99101 this . #args = wininfo . args || [ ] ;
100102 this . wininfo = wininfo ;
101103 this . state = $state ( {
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ class BrowserApp extends App {
101101
102102 browser . content . appendChild ( iframe ) ;
103103
104+ //@ts -expect-error
105+ iframe . contentWindow . anurainstance = browser ;
106+
104107 if ( anura . settings . get ( "borderless-aboutbrowser" ) ) {
105108 // make borderless
106109 browser . content . style . position = "absolute" ;
@@ -111,6 +114,10 @@ class BrowserApp extends App {
111114
112115 ( container ! . querySelector ( ".title" ) as any ) . style [ "background-color" ] =
113116 "rgba(0, 0, 0, 0)" ;
117+ const titleBar = container ! . querySelector ( ".title" ) as HTMLElement ;
118+ titleBar . style . position = "absolute" ;
119+ titleBar . style . top = "0" ;
120+ titleBar . style . right = "0" ;
114121 }
115122
116123 return browser ;
You can’t perform that action at this time.
0 commit comments