mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
https links were not working properly on mac and win
This commit is contained in:
parent
f79a6c5d8b
commit
3a916633b1
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user