Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 2d6aa97

Browse files
committed
Make it work in IE
1 parent 06b8138 commit 2d6aa97

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

docs/src/app.css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export default createClassRules({
9999
marginTop: "48px",
100100
},
101101
main: {
102+
display: "block",
102103
margin: "0 auto",
103104
maxWidth: "1024px",
104105
textAlign: "left",

docs/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const reactPresets = process.env.NODE_ENV === "production" ? ["react", "react-op
1414
const additionalPlugins = process.env.NODE_ENV === "production" ? [uglifyPlugin] : [];
1515

1616
module.exports = {
17-
entry: "./src/app.tsx",
17+
entry: ["babel-polyfill", "./src/app.tsx"],
1818
devtool: "sourcemap",
1919
resolve: {
2020
extensions: [".ts", ".tsx", ".js", ".jsx", ".txt"],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"awesome-typescript-loader": "^3.0.0-beta.18",
6464
"babel-core": "^6.22.1",
6565
"babel-loader": "^6.2.10",
66+
"babel-polyfill": "^6.22.0",
6667
"babel-preset-es2015": "^6.22.0",
6768
"babel-preset-react": "^6.22.0",
6869
"babel-preset-react-optimize": "^1.0.1",

src/composables/preventPhantomEvents.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export const preventPhantomEvents = combine(
2525
handleTimeUpdateRequest: () => () => {
2626
if (timeUpdateRequested) {
2727
lastTriggerTime = Date.now();
28-
if (typeof performance !== "undefined") {
28+
if (typeof performance !== "undefined" &&
29+
typeof performance.now !== "undefined") {
2930
lastTriggerTimePerformance = performance.now();
3031
}
3132
timeUpdateRequested = false;

0 commit comments

Comments
 (0)