Skip to content

Commit

Permalink
Fixed issue in the Microsoft Edge browser, where it sometimes crashed.
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh committed Jan 21, 2016
1 parent 5f37560 commit 760ba2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions js/jquery.sudoSlider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**@preserve
* Sudo Slider version 3.4.2 - jQuery plugin
* Sudo Slider version 3.4.4 - jQuery plugin
* Written by Erik Krogh Kristensen [email protected].
* http://webbies.dk/SudoSlider/
*
Expand Down Expand Up @@ -1646,7 +1646,11 @@
}

function fixClearType(element) {
if (screen.fontSmoothingEnabled && element.style) element.style.removeAttribute("filter"); // Fix cleartype
if (screen.fontSmoothingEnabled && element.style) {
try {
element.style.removeAttribute("filter"); // Fix cleartype
} catch (ignored) { }
}
}

/*
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.sudoSlider.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "git",
"url": "git+https://github.com/webbiesdk/SudoSlider.git"
},
"version": "3.4.2",
"version": "3.4.4",
"author": {
"name": "Erik Krogh Kristensen",
"url": "webbies.dk",
Expand Down

0 comments on commit 760ba2d

Please sign in to comment.