mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
MacOSX: fixed error when clicking on https urls. Fixes #3083
This commit is contained in:
@ -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) });
|
||||||
|
Reference in New Issue
Block a user