Home > widget-integration > CountdownTimerAPI > resolveTimerScope
CountdownTimerAPI.resolveTimerScope() method
Map the current page type to a countdown timer placement scope.
Override this method to add timer support on additional page types (e.g., collection, homepage, custom landing pages).
Signature:
protected resolveTimerScope(): CountdownPlacement | null;
Returns:
CountdownPlacement | null
The placement scope string, or null if timers are not supported on the current page.
Example
Add support for homepage timers:
protected resolveTimerScope() {
const scope = super.resolveTimerScope();
if (scope) return scope;
if (this.platformLoader.platform.router.page === 'index') return 'home_page';
return null;
}