${i18n('signup_bonus_code_invalid_retry')}
`) + .show(); + return; + } + const requirementsKey = bonusRequirementsKey(result.requirements); + let h = `${html_encode(result.display.title)}`; + h += `${html_encode(result.display.description)}
`; + if (requirementsKey) { + h += `${i18n(requirementsKey)}
`; + } + $notice.removeClass('signup-bonus-notice-invalid').html(h).show(); +} function UIWindowSignup(options) { options = options ?? {}; @@ -70,6 +94,7 @@ function UIWindowSignup(options) { if (window.embedded_in_popup && window.openerOrigin) { h += `${i18n('popup_opener_uses_puter', [new URL(window.openerOrigin).hostname])}
`; } + h += ''; // signup form h += '