Merge pull request #9818 from jakemcdermott/fix-9817

Configure ace editor to not use blob worker

SUMMARY
Intended to address #9817

Reviewed-by: Jake McDermott <yo@jakemcdermott.me>
Reviewed-by: Ryan Petrello <None>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-04-06 19:22:16 +00:00 committed by GitHub
commit d6964c7266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
import React, { useEffect, useRef, useCallback } from 'react';
import { oneOf, bool, number, string, func, oneOfType } from 'prop-types';
import { config } from 'ace-builds';
import ReactAce from 'react-ace';
import 'ace-builds/src-noconflict/mode-json';
import 'ace-builds/src-noconflict/mode-javascript';
@ -11,6 +13,8 @@ import { t } from '@lingui/macro';
import styled from 'styled-components';
import debounce from '../../util/debounce';
config.set('loadWorkerFromBlob', false);
const LINE_HEIGHT = 24;
const PADDING = 12;