Home > widget-integration > CountdownTimerController > handleExpired
CountdownTimerController.handleExpired() method
Handle timer expiration based on the campaign's onceEnd setting.
Signature:
protected handleExpired(): Promise<void>;
Returns:
Promise<void>
Remarks
Three expiration modes: - 'repeat' — clears localStorage start time so the fixed-minutes timer restarts - 'disable' — hides the element and destroys the controller - 'nothing' (default) — renders 00:00:00 and stops ticking
Example
Override to redirect when the timer expires:
protected async handleExpired() {
window.location.href = '/collections/flash-sale';
}