proper routing to website

This commit is contained in:
talksik
2019-08-20 23:17:57 -07:00
parent 76df237db6
commit 730f800d01
+1 -1
View File
@@ -205,7 +205,7 @@ class MainCommand extends Component {
} else if (this.state.command == 'google') { } else if (this.state.command == 'google') {
// if they type chase.com it will go straight there // if they type chase.com it will go straight there
if (commandInput.includes('.com')) { if (commandInput.includes('.com')) {
window.open(commandInput, '_blank'); window.open('https://' + commandInput, '_blank');
} else { } else {
window.open( window.open(
'https://www.google.com/search?q=' + commandInput, 'https://www.google.com/search?q=' + commandInput,