mirror of https://github.com/noisymime/Arduino.git
MacOSX: fixed error when clicking on https urls. Fixes #3083
This commit is contained in:
parent
03a43370b7
commit
e2bf41ddd9
|
@ -119,7 +119,7 @@ public class Platform extends processing.app.Platform {
|
||||||
|
|
||||||
// for Java 1.6, replacing with java.awt.Desktop.browse()
|
// for Java 1.6, replacing with java.awt.Desktop.browse()
|
||||||
// and java.awt.Desktop.open()
|
// and java.awt.Desktop.open()
|
||||||
if (url.startsWith("http://")) { // browse to a location
|
if (url.startsWith("http")) { // browse to a location
|
||||||
Method browseMethod =
|
Method browseMethod =
|
||||||
desktopClass.getMethod("browse", new Class[] { URI.class });
|
desktopClass.getMethod("browse", new Class[] { URI.class });
|
||||||
browseMethod.invoke(desktop, new Object[] { new URI(url) });
|
browseMethod.invoke(desktop, new Object[] { new URI(url) });
|
||||||
|
|
Loading…
Reference in New Issue