Add multiword support to google

This commit is contained in:
Oliver Blanthorn 2017-10-19 20:24:21 +01:00
parent 238f4c1063
commit 7daff9234f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -151,8 +151,8 @@ export function open(url: string) {
/** Custom open. Remove later */
// Hard coded search but lack thereof was annoying
//#content
export function google(query: string[]) {
window.location.href = "https://www.google.co.uk/search?q=" + query //.join("+")
export function google(...query: string[]) {
window.location.href = "https://www.google.co.uk/search?q=" + query.join("+")
}
//#content_helper