Skip to content

Commit

Permalink
fix: link dappkit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecarpini committed Feb 20, 2024
1 parent 6e8b344 commit 61565ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ export class ConnectModal extends LitElement {
onSourceClick = (source?: SourceInfo): void => {
if (source) {
if (source.id === 'veworld' && !window.vechain) {
const path = `${location.host}${location.pathname}${location.search}`;
window.open(
`${VEWORLD_WEBSITE}/?discoveryUrl=${path}`,
`${VEWORLD_WEBSITE}${encodeURIComponent(location.href)}`,
'_self',
);
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/dapp-kit-ui/src/constants/veworld.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VEWORLD_WEBSITE = 'https://veworld.com';
export const VEWORLD_WEBSITE = 'https://www.veworld.com/discover/browser/ul/';

0 comments on commit 61565ca

Please sign in to comment.