proper routing to website
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user