Skip to content

Commit

Permalink
space and tab mixing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjarlow committed Jun 27, 2024
1 parent f5fe049 commit 6cd4ad0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/src/components/SearchResultCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ export default {
this.$router.push(`/data-sources/${this.dataSource.airtable_uid}`);
},
openSource() {
let url = this.dataSource.source_url;
// ensure URL is treated as an absolute path
url = this.prepend_protocol_if_none(url)
let url = this.dataSource.source_url;
// ensure URL is treated as an absolute path
url = this.prepend_protocol_if_none(url)
window.open(url, '_blank');
},
prepend_protocol_if_none(url) {
// add 'https://' if the URL does not have a protocol
prepend_protocol_if_none(url) {
// add 'https://' if the URL does not have a protocol
if (!/^https?:\/\//i.test(url)) {
return url = 'https://' + url;
}
Expand Down

0 comments on commit 6cd4ad0

Please sign in to comment.