Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #22 from henrikhasell/2.2.1-ie-bugfix
Browse files Browse the repository at this point in the history
Fixed syntax error.
  • Loading branch information
Marc Brüderlin authored Mar 22, 2018
2 parents ec1024b + dcf4d1a commit e4804b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/particles.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ var Particles = (function(window, document) {
var color1 = this._hex2rgb(p1.color);
var color2 = this._hex2rgb(p2.color);

gradient.addColorStop(0, 'rgba(' + color1.r + ',' + color1.g + ',' + color1.b + ',' + opacity);
gradient.addColorStop(1, 'rgba(' + color2.r + ',' + color2.g + ',' + color2.b + ',' + opacity);
gradient.addColorStop(0, 'rgba(' + color1.r + ',' + color1.g + ',' + color1.b + ',' + opacity + ')');
gradient.addColorStop(1, 'rgba(' + color2.r + ',' + color2.g + ',' + color2.b + ',' + opacity + ')');

_.context.beginPath();
_.context.strokeStyle = gradient;
Expand Down
2 changes: 1 addition & 1 deletion dist/particles.min.js
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ var Particles = (function(window, document) {
var color1 = this._hex2rgb(p1.color);
var color2 = this._hex2rgb(p2.color);

gradient.addColorStop(0, 'rgba(' + color1.r + ',' + color1.g + ',' + color1.b + ',' + opacity);
gradient.addColorStop(1, 'rgba(' + color2.r + ',' + color2.g + ',' + color2.b + ',' + opacity);
gradient.addColorStop(0, 'rgba(' + color1.r + ',' + color1.g + ',' + color1.b + ',' + opacity + ')');
gradient.addColorStop(1, 'rgba(' + color2.r + ',' + color2.g + ',' + color2.b + ',' + opacity + ')');

_.context.beginPath();
_.context.strokeStyle = gradient;
Expand Down

0 comments on commit e4804b4

Please sign in to comment.