From 3a916633b1e3ac2f54e6886b9693937aa9fcd442 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Thu, 2 Apr 2015 09:51:26 +0200 Subject: [PATCH] https links were not working properly on mac and win --- arduino-core/src/processing/app/macosx/Platform.java | 2 +- arduino-core/src/processing/app/windows/Platform.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino-core/src/processing/app/macosx/Platform.java b/arduino-core/src/processing/app/macosx/Platform.java index d2d7c0216..04ffda917 100644 --- a/arduino-core/src/processing/app/macosx/Platform.java +++ b/arduino-core/src/processing/app/macosx/Platform.java @@ -95,7 +95,7 @@ public class Platform extends processing.app.Platform { public void openURL(String url) throws Exception { if (PApplet.javaVersion < 1.6f) { - if (url.startsWith("http://")) { + if (url.startsWith("http")) { // formerly com.apple.eio.FileManager.openURL(url); // but due to deprecation, instead loading dynamically try { diff --git a/arduino-core/src/processing/app/windows/Platform.java b/arduino-core/src/processing/app/windows/Platform.java index c5ad48367..a370f28b5 100644 --- a/arduino-core/src/processing/app/windows/Platform.java +++ b/arduino-core/src/processing/app/windows/Platform.java @@ -242,7 +242,7 @@ public class Platform extends processing.app.Platform { // "Access is denied" in both cygwin and the "dos" prompt. //Runtime.getRuntime().exec("cmd /c " + currentDir + "\\reference\\" + // referenceFile + ".html"); - if (url.startsWith("http://")) { + if (url.startsWith("http")) { // open dos prompt, give it 'start' command, which will // open the url properly. start by itself won't work since // it appears to need cmd