Skip to content

Commit

Permalink
fix: Add polyfills for IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkr00t committed Jun 27, 2017
1 parent 580e6a2 commit d9946d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
"dependencies": {
"cerebral": "2.0.0-b-alpha.44b98c71",
"date-fns": "^1.28.2",
"es6-object-assign": "^1.1.0",
"highlight.js": "^9.11.0",
"html": "^1.0.0",
"ie-array-find-polyfill": "^1.1.0",
"javascript-stringify": "^1.6.0",
"jsondiffpatch": "^0.2.4",
"prosemirror-model": "*",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "ie-array-find-polyfill";
import objectAssign from "es6-object-assign";
import React from "react";
import ReactDOM from "react-dom";
import { Container } from "cerebral/react";
Expand All @@ -11,6 +13,8 @@ import theme from "./theme";

const DEVTOOLS_CLASS_NAME = "__prosemirror-dev-tools__";

objectAssign.polyfill();

function createPlace() {
let place = document.querySelector(`.${DEVTOOLS_CLASS_NAME}`);

Expand Down

0 comments on commit d9946d6

Please sign in to comment.