diff --git a/services/web/app/src/Features/Project/ProjectController.js b/services/web/app/src/Features/Project/ProjectController.js index a61d530338..b339263091 100644 --- a/services/web/app/src/Features/Project/ProjectController.js +++ b/services/web/app/src/Features/Project/ProjectController.js @@ -727,6 +727,8 @@ const _ProjectController = { isTokenMember, isInvitedMember ), + roMirrorOnClientNoLocalStorage: + Settings.adminOnlyLogin || project.name.startsWith('Debug: '), languages: Settings.languages, learnedWords, editorThemes: THEME_LIST, diff --git a/services/web/app/views/project/editor/meta.pug b/services/web/app/views/project/editor/meta.pug index 5df437d055..83f36d4f12 100644 --- a/services/web/app/views/project/editor/meta.pug +++ b/services/web/app/views/project/editor/meta.pug @@ -38,6 +38,7 @@ meta(name="ol-inactiveTutorials", data-type="json" content=user.inactiveTutorial meta(name="ol-projectTags" data-type="json" content=projectTags) meta(name="ol-linkSharingWarning" data-type="boolean" content=linkSharingWarning) meta(name="ol-usedLatex" data-type="string" content=usedLatex) +meta(name="ol-ro-mirror-on-client-no-local-storage" data-type="boolean" content=roMirrorOnClientNoLocalStorage) // translations for the loading page, before i18n has loaded in the client meta(name="ol-loadingText", data-type="string" content=translate("loading")) diff --git a/services/web/frontend/js/utils/meta.ts b/services/web/frontend/js/utils/meta.ts index 57d76075ca..8f7d2f0b5d 100644 --- a/services/web/frontend/js/utils/meta.ts +++ b/services/web/frontend/js/utils/meta.ts @@ -163,6 +163,7 @@ export interface Meta { 'ol-reconfirmedViaSAML': string 'ol-recurlyApiKey': string 'ol-recurlySubdomain': string + 'ol-ro-mirror-on-client-no-local-storage': boolean 'ol-samlError': SAMLError | undefined 'ol-settingsGroupSSO': { enabled: boolean } | undefined 'ol-settingsPlans': Plan[]