File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,11 @@ const DappPage = () => {
246
246
if ( isValid ) {
247
247
// jump to website
248
248
setSelectedURL ( finalURL ) ;
249
- } else {
250
- // google search
251
- setSelectedURL ( `https://www.google.com/search?q=${ finalURL } ` ) ;
252
249
}
250
+ // else {
251
+ // // google search
252
+ // setSelectedURL(`https://www.google.com/search?q=${finalURL}`);
253
+ // }
253
254
} }
254
255
/>
255
256
{ shouldShowBrowser && (
Original file line number Diff line number Diff line change @@ -313,9 +313,9 @@ interface ValidURLCheckResult {
313
313
314
314
export function isValidURL ( str : string ) : ValidURLCheckResult {
315
315
try {
316
- if ( ! str . startsWith ( 'https://' ) && ! str . startsWith ( 'http://' ) ) {
317
- str = 'https://' + str ;
318
- }
316
+ // if (!str.startsWith('https://') && !str.startsWith('http://')) {
317
+ // str = 'https://' + str;
318
+ // }
319
319
const parsedUrl = new URL ( str ) ;
320
320
const regex = / ^ ( [ a - z A - Z 0 - 9 - _ .: ] + ) + $ / ;
321
321
return {
You can’t perform that action at this time.
0 commit comments