Skip to content

Commit 3a91663

Browse files
author
Federico Fissore
committed
https links were not working properly on mac and win
1 parent f79a6c5 commit 3a91663

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arduino-core/src/processing/app/macosx/Platform.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public File getDefaultSketchbookFolder() throws Exception {
9595

9696
public void openURL(String url) throws Exception {
9797
if (PApplet.javaVersion < 1.6f) {
98-
if (url.startsWith("http://")) {
98+
if (url.startsWith("http")) {
9999
// formerly com.apple.eio.FileManager.openURL(url);
100100
// but due to deprecation, instead loading dynamically
101101
try {

arduino-core/src/processing/app/windows/Platform.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public void openURL(String url) throws Exception {
242242
// "Access is denied" in both cygwin and the "dos" prompt.
243243
//Runtime.getRuntime().exec("cmd /c " + currentDir + "\\reference\\" +
244244
// referenceFile + ".html");
245-
if (url.startsWith("http://")) {
245+
if (url.startsWith("http")) {
246246
// open dos prompt, give it 'start' command, which will
247247
// open the url properly. start by itself won't work since
248248
// it appears to need cmd

0 commit comments

Comments
 (0)