Merge branch 'develop' of https://github.com/syuilo/misskey into develop

This commit is contained in:
syuilo 2018-11-29 16:24:05 +09:00
commit ab594d1dfe
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
5 changed files with 29 additions and 1 deletions

View file

@ -22,7 +22,10 @@ export default Vue.extend({
},
methods: {
search() {
window.open(`https://www.google.com/?#q=${this.query}`, '_blank');
const engine = this.$store.state.settings.webSearchEngine ||
'https://www.google.com/?#q={{query}}';
const url = engine.replace('{{query}}', this.query)
window.open(url, '_blank');
}
}
});