Merge pull request #3979 from overleaf/ae-exposed-settings

Remove exposed-settings.js

GitOrigin-RevId: 056526b6e5fb50c4fd8058338e894eed9a3a50f4
This commit is contained in:
Alf Eaton 2021-05-04 12:37:06 +01:00 committed by Copybot
parent 1173c5c2da
commit e9b93a6ef2
4 changed files with 3 additions and 10 deletions

View file

@ -1,4 +1,3 @@
import App from '../base'
import ExposedSettings from './exposed-settings'
App.constant('ExposedSettings', ExposedSettings)
App.constant('ExposedSettings', window.ExposedSettings)

View file

@ -1,3 +0,0 @@
const ExposedSettings = window.ExposedSettings
export default ExposedSettings

View file

@ -1,7 +1,5 @@
import ExposedSettings from './exposed-settings'
const validTeXFileRegExp = new RegExp(
`\\.(${ExposedSettings.validRootDocExtensions.join('|')})$`,
`\\.(${window.ExposedSettings.validRootDocExtensions.join('|')})$`,
'i'
)

View file

@ -1,6 +1,5 @@
import React, { createContext, useContext } from 'react'
import PropTypes from 'prop-types'
import ExposedSettings from '../../main/exposed-settings'
export const ApplicationContext = createContext()
@ -22,7 +21,7 @@ ApplicationContext.Provider.propTypes = {
export function ApplicationProvider({ children }) {
const applicationContextValue = {
user: window.user,
exposedSettings: ExposedSettings,
exposedSettings: window.ExposedSettings,
gitBridgePublicBaseUrl: window.gitBridgePublicBaseUrl,
}
return (