-
Notifications
You must be signed in to change notification settings - Fork 0
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
Common CC flow with different 3DS flows [airwallex,stripe] #70
Conversation
Found changes in |
Found changes in |
packages/utils/src/base-url.ts
Outdated
|
||
export const getCdeBaseUrl = () => { | ||
// @ts-expect-error ojs is not defined in the global scope | ||
return new URL(window?.ojs?.config?.baseUrl ?? FRAME_BASE_URL).origin; |
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.
Let's not use window.ojs
because it's supposed to be for debugging purposes only. We want to minimize use of global variables because it leads to spaghetti. Instead please pass baseUrl
through OjsContext
, which is the more appropriate route for it. runOjsFlows have access to the context
Found changes in |
Found changes in |
No description provided.