-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B2PDE-1447 implements getAppDomain #199
Conversation
4f566b6
to
3753b51
Compare
```ts | ||
getAppDomain: () => Promise<{domain: string}>; | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `domain`: the domain value of the environment that the app is pointing to. |
src/__tests__/device-test.ts
Outdated
type: 'GET_APP_DOMAIN', | ||
id: msg.id, | ||
payload: { | ||
appDomain: '123', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we expect an URL IMHO I would use https://example.com if there is any string user ANY_STRING
appDomain: '123', | |
appDomain: 'https://example.com', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remember to export the new method in index.ts
https://github.com/Telefonica/webview-bridge/blob/master/index.ts#L28
This PR introduces the
getAppDomain
function, which allows retrieving the domain of the application where the WebView bridge is running. This functionality is useful for identifying the application context and adjusting specific behaviors based on the domain.closes #195