Skip to content

Commit

Permalink
fix: link dappkit (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecarpini authored Feb 20, 2024
1 parent 6e8b344 commit 9d7729f
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 9d7729f

Please sign in to comment.