Skip to content

Commit

Permalink
Revert "Fix canvas error in newer versions of Edge"
Browse files Browse the repository at this point in the history
This reverts commit 36741d4.
  • Loading branch information
spatialillusions committed Oct 16, 2017
1 parent 36741d4 commit ef5f8e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symbol/ascanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = function(ratio) {

switch (instruction[i].type) {
case "path":
try {
if (typeof Path2D != "undefined") {
var d = new Path2D(instruction[i].d);
if (
typeof instruction[i].fill === "undefined" ||
Expand All @@ -56,7 +56,7 @@ module.exports = function(ratio) {
instruction[i].stroke)
)
ctx.stroke(d);
} catch (err) {
} else {
if (typeof ms._Path2D === "function") {
ms._Path2D(ctx, instruction[i].d);
if (
Expand Down

0 comments on commit ef5f8e5

Please sign in to comment.