From 6cd4ad0026400c66dc794fc35d609511bb4bbc7c Mon Sep 17 00:00:00 2001 From: bonjarlow Date: Thu, 27 Jun 2024 16:59:36 -0400 Subject: [PATCH] space and tab mixing fixed --- client/src/components/SearchResultCard.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/SearchResultCard.vue b/client/src/components/SearchResultCard.vue index a267a563..3400210a 100644 --- a/client/src/components/SearchResultCard.vue +++ b/client/src/components/SearchResultCard.vue @@ -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; }