Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the TextDecoder/TextEncoder polyfill #1555

Merged
merged 1 commit into from
Dec 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions products/jbrowse-web/src/Loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { AnyConfigurationModel } from '@jbrowse/core/configuration/configuration
import { types, Instance, SnapshotOut } from 'mobx-state-tree'
import { PluginConstructor } from '@jbrowse/core/Plugin'
import { FatalErrorDialog } from '@jbrowse/core/ui'
import { TextDecoder, TextEncoder } from 'fastestsmallesttextencoderdecoder'
import 'fontsource-roboto'
import 'requestidlecallback-polyfill'
import 'core-js/stable'
Expand All @@ -34,12 +33,6 @@ import packagedef from '../package.json'
import factoryReset from './factoryReset'
import StartScreen from './StartScreen'

if (!window.TextEncoder) {
window.TextEncoder = TextEncoder
}
if (!window.TextDecoder) {
window.TextDecoder = TextDecoder
}
function NoConfigMessage() {
const s = window.location.search
const links = [
Expand Down
4 changes: 0 additions & 4 deletions products/jbrowse-web/src/tests/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rangeParser from 'range-parser' // eslint-disable-line import/no-extraneous-dependencies
import PluginManager from '@jbrowse/core/PluginManager'
import { TextDecoder, TextEncoder } from 'fastestsmallesttextencoderdecoder'
import JBrowseRootModelFactory from '../rootModel'
import configSnapshot from '../../test_data/volvox/config.json'
import corePlugins from '../corePlugins'
Expand Down Expand Up @@ -67,9 +66,6 @@ export function generateReadBuffer(getFileFunction) {
}

export function setup() {
if (!window.TextEncoder) window.TextEncoder = TextEncoder
if (!window.TextDecoder) window.TextDecoder = TextDecoder

window.requestIdleCallback = cb => cb()
window.cancelIdleCallback = () => {}
window.requestAnimationFrame = cb => setTimeout(cb)
Expand Down