mirror of
https://github.com/modrinth/code.git
synced 2026-09-02 13:05:50 +00:00
format
This commit is contained in:
@@ -24,10 +24,7 @@ class AdsConsentController {
|
|||||||
if (!cmpMain) {
|
if (!cmpMain) {
|
||||||
if (this.state.phase === 'idle') {
|
if (this.state.phase === 'idle') {
|
||||||
document.documentElement.classList.remove('modrinth-ads-consent-overlay')
|
document.documentElement.classList.remove('modrinth-ads-consent-overlay')
|
||||||
} else if (
|
} else if (this.state.phase !== 'submitting-consent' && this.state.phase !== 'finishing') {
|
||||||
this.state.phase !== 'submitting-consent' &&
|
|
||||||
this.state.phase !== 'finishing'
|
|
||||||
) {
|
|
||||||
this.finishConsentFlow()
|
this.finishConsentFlow()
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
@@ -98,10 +95,7 @@ class AdsConsentController {
|
|||||||
this.submissionTimeout = null
|
this.submissionTimeout = null
|
||||||
const dialogId = this.state.variant === 'usp' ? 'qc-cmp2-usp' : 'qc-cmp2-ui'
|
const dialogId = this.state.variant === 'usp' ? 'qc-cmp2-usp' : 'qc-cmp2-ui'
|
||||||
|
|
||||||
if (
|
if (this.state.phase === 'submitting-consent' && !document.getElementById(dialogId)) {
|
||||||
this.state.phase === 'submitting-consent' &&
|
|
||||||
!document.getElementById(dialogId)
|
|
||||||
) {
|
|
||||||
this.finishConsentFlow()
|
this.finishConsentFlow()
|
||||||
} else if (this.state.phase === 'submitting-consent' && preSubmissionPhase) {
|
} else if (this.state.phase === 'submitting-consent' && preSubmissionPhase) {
|
||||||
this.state.setState(preSubmissionPhase)
|
this.state.setState(preSubmissionPhase)
|
||||||
|
|||||||
Reference in New Issue
Block a user