/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
3p/iframe-transport-client-lib.js
21 строка
580 B
Ryan Cebulko
♻️ Move files into #core, #utils to enable tsc typechecking (#36277)
07 окт 2021, 23:26
Не верифицирован
07 окт 2021, 23:26
b6d1550
Код
Авторство
О чём код?
// src/polyfills.js must be the first import. import './polyfills'; import {initLogConstructor, setReportError} from '#utils/log'; import {IframeTransportClient} from './iframe-transport-client'; initLogConstructor(); // TODO(alanorozco): Refactor src/error.reportError so it does not contain big // transitive dependencies and can be included here. setReportError(() => {}); /** * Instantiate IframeTransportClient, to provide the creative with * all the required functionality. */ try { new IframeTransportClient(window); } catch (err) { // do nothing with error }