Your IP : 3.145.36.12


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/history/src/internal/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/history/src/internal/on-init.js

import type {History} from '../history';

/**
 * Calls on init history object
 * @param history
 * @return {Promise<History>}
 */
export default function onInit(history: History): Promise<History>
{
	const rootWindow = BX.Landing.PageObject.getRootWindow();
	BX.onCustomEvent(rootWindow.window, 'BX.Landing.History:init', [history]);

	return Promise.resolve(history);
}