Skip to content

Commit

Permalink
Merge pull request #1082 from multiversx/development
Browse files Browse the repository at this point in the history
2.29.0-beta.7
  • Loading branch information
CiprianDraghici authored Mar 15, 2024
2 parents 04e8b01 + cd411b7 commit b285bd5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [[v2.29.0-beta.7]](https://github.com/multiversx/mx-sdk-dapp/pull/1082)] - 2024-03-15
- [Prevent nextjs build issue](https://github.com/multiversx/mx-sdk-dapp/pull/1081)

## [[v2.29.0-beta.6]](https://github.com/multiversx/mx-sdk-dapp/pull/1080)] - 2024-03-14
- [Fix web wallet URL construction on logout action](https://github.com/multiversx/mx-sdk-dapp/pull/1079)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-dapp",
"version": "2.29.0-beta.6",
"version": "2.29.0-beta.7",
"description": "A library to hold the main logic for a dapp on the MultiversX blockchain",
"author": "MultiversX",
"license": "GPL-3.0-or-later",
Expand Down
6 changes: 6 additions & 0 deletions src/UI/CopyButton/helpers/copyToClipboard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { isWindowAvailable } from 'utils/isWindowAvailable';

function fallbackCopyTextToClipboard(text: string) {
let success = false;

Expand All @@ -21,6 +23,10 @@ function fallbackCopyTextToClipboard(text: string) {
}

export async function copyTextToClipboard(text: string) {
if (!isWindowAvailable()) {
return false;
}

let success = false;

if (!navigator.clipboard) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { withStyles, WithStylesImportType } from 'hocs/withStyles';
import { useExtensionLogin } from 'hooks/login/useExtensionLogin';
import { getIsNativeAuthSingingForbidden } from 'services/nativeAuth/helpers';
import { LoginButton } from 'UI/LoginButton/LoginButton';
import { isWindowAvailable } from 'utils/isWindowAvailable';
import { OnProviderLoginType } from '../../../types';
import { WithClassnameType } from '../../types';
import { getIsExtensionAvailable } from '../helpers';
Expand Down Expand Up @@ -47,7 +48,8 @@ const ExtensionLoginButtonComponent: (
nativeAuth
});
const disabledConnectButton = getIsNativeAuthSingingForbidden(token);
const isFirefox = navigator.userAgent.indexOf('Firefox') != -1;
const isFirefox =
isWindowAvailable() && navigator.userAgent.indexOf('Firefox') != -1;
const classes = {
wrapper: classNames(
globalStyles?.btn,
Expand Down

0 comments on commit b285bd5

Please sign in to comment.