redirect with google oauth

This commit is contained in:
DocuSeal authored and Pete Matsyburka committed 2023-11-17 02:27:32 +02:00
1 parent 26f7d5cf0d
commit cdd034e72d
4 files changed
+26 -3

No files matched your search

+15 -1
View File
@@ -1,7 +1,21 @@
export default class extends HTMLElement {
connectedCallback () {
if (this.dataset.inputId) {
document.getElementById(this.dataset.inputId).value = Intl.DateTimeFormat().resolvedOptions().timeZone
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
if (this.dataset.params === 'true') {
const params = new URLSearchParams(this.input.value)
params.set('timezone', timezone)
this.input.value = params.toString()
} else {
this.input.value = timezone
}
}
}
get input () {
return document.getElementById(this.dataset.inputId)
}
}