Skip to content

Commit

Permalink
Fixed detection of old GreaseMonkey user script installs of Dreditor.
Browse files Browse the repository at this point in the history
  • Loading branch information
markhalliwell committed Jul 28, 2014
1 parent 3915d5d commit 5ed59d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sites/all/themes/dreditor_theme/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ function versionCompare(v1, v2, options) {
else if (Drupal.dreditor) {
installedVersion = '0.0.1';
}
if ($.browser.mozilla && installedVersion <= '1.2.3') {

// Detect older versions of the Dreditor user script.
if (installedVersion !== '0.0.0' && $.browser.mozilla && versionCompare(installedVersion, '1.2.3') <= 0) {
installedVersion = '0.0.1';
}

Expand Down

0 comments on commit 5ed59d0

Please sign in to comment.