We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e83195b commit 2d2cd1eCopy full SHA for 2d2cd1e
1 file changed
src/de/littlerolf/sav/SortAlgorithmVisualizer.java
@@ -24,10 +24,15 @@ public class SortAlgorithmVisualizer {
24
private static final String SERVER_URL = "http://littlerolf.github.io/SortAlgorithmVisualizer/";
25
26
public static void main(String[] args) {
27
- if (isRemoteNewer()) {
28
- startJar(downloadRemoteJar().getAbsolutePath());
29
- } else
+ if (getLocalVersion() > -1) {
+ if (isRemoteNewer()) {
+ startJar(downloadRemoteJar().getAbsolutePath());
30
+ } else {
31
+ startLocal();
32
+ }
33
34
startLocal();
35
36
}
37
38
private static int getLocalVersion() {
0 commit comments