overleaf/services/web/frontend/js/features/pdf-preview/controllers/pdf-preview-controller.js
Alf Eaton 9253dac12f Merge pull request #8010 from overleaf/ta-synctex-unmount
Unmount Default Synctex Controls in Detacher Mode

GitOrigin-RevId: bc754fb172aba7430003f7a61eddb4450b175025
2022-05-24 08:04:11 +00:00

19 lines
587 B
JavaScript

import App from '../../../base'
import { react2angular } from 'react2angular'
import PdfPreview from '../components/pdf-preview'
import { rootContext } from '../../../shared/context/root-context'
import {
DefaultSynctexControl,
DetacherSynctexControl,
} from '../components/detach-synctex-control'
App.component('pdfPreview', react2angular(rootContext.use(PdfPreview), []))
App.component(
'pdfSynctexControls',
react2angular(rootContext.use(DefaultSynctexControl), [])
)
App.component(
'detacherSynctexControl',
react2angular(rootContext.use(DetacherSynctexControl), [])
)