Skip to content

Commit 2cdb9c3

Browse files
authored
Merge pull request #466 from PayButton/fix/no-cashtab-extension-error
fix: open cashtab web case
2 parents aab3ddc + 29b83b5 commit 2cdb9c3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

react/lib/components/Widget/Widget.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -523,13 +523,8 @@ export const Widget: React.FunctionComponent<WidgetProps> = props => {
523523
if (addressType === 'XEC') {
524524
const hasExtension = getCashtabProviderStatus();
525525
if (!hasExtension) {
526-
const isMobile = window.matchMedia('(pointer:coarse)').matches;
527-
if (isMobile) {
528-
const webUrl = `https://cashtab.com/#/send?bip21=${url}`;
529-
window.open(webUrl, '_blank');
530-
} else {
531-
window.location.href = url;
532-
}
526+
const webUrl = `https://cashtab.com/#/send?bip21=${url}`;
527+
window.open(webUrl, '_blank');
533528
} else {
534529
return window.postMessage(
535530
{

0 commit comments

Comments
 (0)