Skip to content

Commit c7e2100

Browse files
committed
remove trailing slash in domain if present
1 parent e9497f7 commit c7e2100

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/caspio/caspio.app.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ export default {
1515
},
1616
},
1717
methods: {
18+
_domain() {
19+
return this.$auth.domain.endsWith("/")
20+
? this.$auth.domain.slice(0, -1)
21+
: this.$auth.domain;
22+
},
1823
_baseUrl() {
19-
return `${this.$auth.domain}/integrations/rest/v3`;
24+
return `${this._domain()}/integrations/rest/v3`;
2025
},
2126
_makeRequest({
2227
$ = this, path, ...opts

0 commit comments

Comments
 (0)