mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 00:43:41 -05:00
aa480a2663
[web] migrate from window attributes to getMeta GitOrigin-RevId: 3dcf1ab6b01155e5e4abeb3e78d0fa9053e055bc
16 lines
676 B
TypeScript
16 lines
676 B
TypeScript
export function resetMeta() {
|
|
window.metaAttributesCache = new Map()
|
|
window.metaAttributesCache.set('ol-i18n', { currentLangCode: 'en' })
|
|
window.metaAttributesCache.set('ol-ExposedSettings', {
|
|
appName: 'Overleaf',
|
|
validRootDocExtensions: ['tex', 'Rtex', 'ltx', 'Rnw'],
|
|
fileIgnorePattern:
|
|
'**/{{__MACOSX,.git,.texpadtmp,.R}{,/**},.!(latexmkrc),*.{dvi,aux,log,toc,out,pdfsync,synctex,synctex(busy),fdb_latexmk,fls,nlo,ind,glo,gls,glg,bbl,blg,doc,docx,gz,swp}}',
|
|
hasLinkedProjectFileFeature: true,
|
|
hasLinkedProjectOutputFileFeature: true,
|
|
hasLinkUrlFeature: true,
|
|
})
|
|
}
|
|
|
|
// Populate meta for top-level access in modules on import
|
|
resetMeta()
|