File tree Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @fuels/connectors " : minor
3
+ ---
4
+
5
+ add bako safe connector to the default connectors
Original file line number Diff line number Diff line change
1
+ ---
2
+ " @fuel-connectors/bako-safe " : minor
3
+ ---
4
+
5
+ fix positioning/size of bako popup
Original file line number Diff line number Diff line change @@ -27,13 +27,15 @@ export class DAppWindow {
27
27
top : WINDOW . innerHeight / 2 - height / 2 ,
28
28
left : WINDOW . innerWidth / 2 - width / 2 ,
29
29
width,
30
- height : WINDOW . innerHeight >= height ? height : WINDOW . innerHeight ,
30
+ height :
31
+ ! this . isMobile && WINDOW . innerHeight >= height
32
+ ? height
33
+ : WINDOW . innerHeight ,
31
34
} ;
32
35
}
33
36
34
37
open ( method : string , reject : ( e : Error ) => void ) {
35
38
if ( this . isOpen ) reject ( new Error ( 'Window is already open' ) ) ;
36
- const _isConnection = ! method . includes ( '/dapp/' ) ;
37
39
38
40
if ( ! this . isSafariBrowser ) {
39
41
// if is not safari, we can use popup for both cases
@@ -80,7 +82,7 @@ export class DAppWindow {
80
82
frame . src = `${ this . config . appUrl } ${ method } ${ this . queryString } ${
81
83
isSafari ? '&byConnector=true' : ''
82
84
} `;
83
- frame . style . position = 'absolute ' ;
85
+ frame . style . position = 'fixed ' ;
84
86
frame . style . zIndex = '99999999' ;
85
87
frame . style . top = `${ w . top } ` ;
86
88
frame . style . left = `${ w . left } ` ;
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export const APP_IMAGE_LIGHT =
9
9
'https://safe.bako.global/BAKO_CONNECTOR_ICON.svg' ;
10
10
11
11
export const APP_URL = 'https://safe.bako.global' ;
12
- export const HOST_URL = 'https://api-safe .bako.global' ;
13
- export const SOCKET_URL = 'https://api-safe .bako.global' ;
12
+ export const HOST_URL = 'https://api.bako.global' ;
13
+ export const SOCKET_URL = 'https://api.bako.global' ;
14
14
15
15
// Window object
16
16
export const HAS_WINDOW = typeof window !== 'undefined' ;
Original file line number Diff line number Diff line change
1
+ import { BakoSafeConnector } from '@fuel-connectors/bako-safe' ;
1
2
import { BurnerWalletConnector } from '@fuel-connectors/burner-wallet-connector' ;
2
3
import { FuelWalletDevelopmentConnector } from '@fuel-connectors/fuel-development-wallet' ;
3
4
import { FuelWalletConnector } from '@fuel-connectors/fuel-wallet' ;
@@ -14,6 +15,7 @@ export function defaultConnectors({
14
15
} : DefaultConnectors = { } ) : Array < FuelConnector > {
15
16
const connectors = [
16
17
new FuelWalletConnector ( ) ,
18
+ new BakoSafeConnector ( ) ,
17
19
new FueletWalletConnector ( ) ,
18
20
new WalletConnectConnector ( ) ,
19
21
new BurnerWalletConnector ( ) ,
You can’t perform that action at this time.
0 commit comments