Skip to content
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

Add support for OneGate wallet #161

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

mike-petrov
Copy link
Contributor

Signed-off-by: Mikhail Petrov [email protected]

closes #145

@mike-petrov mike-petrov self-assigned this Feb 21, 2024
@mike-petrov
Copy link
Contributor Author

We have one issue: we can't open and download objects because it's not allowed in a browser type like the wallet. What can we do about it? For example, we can display images in popup and they will be visible, but other types of files are not suitable for displaying.

image

@mike-petrov mike-petrov force-pushed the feature/145-support_onegate_wallet branch from 3b65396 to dfcff32 Compare February 21, 2024 14:00
}
}

const onDisconnectWallet = async () => {
await wcSdk.disconnect();
if (!dapi) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But what about if dapi? How can we disconnect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no such method in the documentation, so we just redirect the user to the main page

height={40}
alt="download an object"
/>
{!window.OneGate && (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing for OneGate is delete? Downloads (with appropriate Content-Disposition) get blocked too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, opening a new tab and downloading is not available

@roman-khimov roman-khimov merged commit 0ba45a8 into master Feb 22, 2024
3 checks passed
@roman-khimov roman-khimov deleted the feature/145-support_onegate_wallet branch February 22, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for OneGate wallet
2 participants