Skip to content

Commit 388834e

Browse files
committed
fix: replaced getPlatform with getBrowserName
1 parent a6191b4 commit 388834e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui/components/app/srp-input-import/srp-input-import.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ import {
2424
TextVariant,
2525
} from '../../../helpers/constants/design-system';
2626
import { PLATFORM_FIREFOX } from '../../../../shared/constants/app';
27-
// eslint-disable-next-line import/no-restricted-paths
28-
import { getPlatform } from '../../../../app/scripts/lib/util';
27+
import { getBrowserName } from '../../../../shared/modules/browser-runtime.utils';
2928
import { parseSecretRecoveryPhrase } from './parse-secret-recovery-phrase';
3029

3130
const SRP_LENGTHS = [12, 15, 18, 21, 24];
@@ -187,7 +186,7 @@ export default function SrpInputImport({ onChange }: SrpInputImportProps) {
187186
);
188187

189188
const onTriggerPaste = async () => {
190-
if (getPlatform() === PLATFORM_FIREFOX) {
189+
if (getBrowserName() === PLATFORM_FIREFOX) {
191190
const newSrp = await navigator.clipboard.readText();
192191
if (newSrp.trim().match(/\s/u)) {
193192
onSrpPaste(newSrp);

0 commit comments

Comments
 (0)