Skip to content

Commit

Permalink
Add showNotifications config to FCL
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Oct 31, 2024
1 parent f698d6b commit bba3475
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/fcl/src/utils/walletconnect/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ export function initFclWcLoader() {
config.subscribe(async (fullConfig: any) => {
const wcConfig = {
"walletconnect.projectId": fullConfig["walletconnect.projectId"],
"walletconnect.showNotifications":
fullConfig["walletconnect.showNotifications"],
"app.detail.title": fullConfig["app.detail.title"],
"app.detail.icon": fullConfig["app.detail.icon"],
"app.detail.description": fullConfig["app.detail.description"],
"app.detail.url": fullConfig["app.detail.url"],
}
const projectId: string | undefined = wcConfig["walletconnect.projectId"]
const showNotifications: boolean =
wcConfig["walletconnect.showNotifications"]

// Check if the plugin is already loaded by this loader, but with different configuration
// The plugin can only be loaded once
Expand Down Expand Up @@ -98,6 +102,7 @@ ${lastConfig}`
const {clientPromise: _clientPromise, FclWcServicePlugin} = fclWc.initLazy({
projectId,
metadata: getMetadata(wcConfig),
showNotifications: showNotifications,
})
pluginRegistry.add([FclWcServicePlugin])
})
Expand Down

0 comments on commit bba3475

Please sign in to comment.