Skip to content

Commit 63a2585

Browse files
fix region from auth
1 parent 1571a72 commit 63a2585

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

components/jotform/jotform.app.mjs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,9 @@ export default {
100100
},
101101
methods: {
102102
_getBaseUrl() {
103-
let baseUrl = `https://${this.$auth.region}.jotform.com/`;
104-
const standardSubdomains = [
105-
"api",
106-
"eu-api",
107-
"hipaa-api",
108-
];
109-
if (!standardSubdomains.includes(this.$auth.region)) {
110-
baseUrl += "API/";
111-
}
112-
return baseUrl;
103+
return this.$auth.subdomain
104+
? `https://${this.$auth.subdomain}.jotform.com/API/`
105+
: `https://${this.$auth.region}.jotform.com/`;
113106
},
114107
_ensureTrailingSlash(str) {
115108
return (str.endsWith("/"))

0 commit comments

Comments
 (0)