Skip to content

Commit

Permalink
Merge pull request #27 from reown-com/chore/minor-improvements
Browse files Browse the repository at this point in the history
chore: minor improvements
  • Loading branch information
skibitsky authored Nov 29, 2024
2 parents c029952 + 2a6739c commit fbfdcea
Show file tree
Hide file tree
Showing 8 changed files with 9,324 additions and 569,628 deletions.
3 changes: 2 additions & 1 deletion sample/Reown.AppKit.Unity/Assets/Scripts/AppKitInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ private async void Start()
{
Domain = "example.com",
Uri = "https://example.com/login"
}
},
SignOutOnChainChange = false
};

// Subscribe to SIWE events
Expand Down
4 changes: 3 additions & 1 deletion src/Reown.AppKit.Unity/Plugins/AppKit.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ mergeInto(LibraryManager.library, {
const metadata = parameters.metadata;
const chains = parameters.chains;

const enableEmail = parameters.enableEmail;
const enableOnramp = parameters.enableOnramp;
const enableAnalytics = parameters.enableAnalytics;

// Load the scripts and initialize the configuration
import("https://cdn.jsdelivr.net/npm/@reown/[email protected].0/dist/appkit.js").then(AppKit => {
import("https://cdn.jsdelivr.net/npm/@reown/[email protected].3/dist/appkit.js").then(AppKit => {
const WagmiCore = AppKit['WagmiCore'];
const WagmiAdapter = AppKit['WagmiAdapter'];
const Chains = AppKit['networks'];
Expand All @@ -90,6 +91,7 @@ mergeInto(LibraryManager.library, {
metadata: metadata,
projectId,
features: {
email: enableEmail,
analytics: enableAnalytics,
onramp: enableOnramp,
socials: []
Expand Down
Loading

0 comments on commit fbfdcea

Please sign in to comment.