MacOSX: fixed error when clicking on https urls. Fixes #3083

This commit is contained in:
Federico Fissore 2015-05-06 09:11:00 +02:00
parent 03a43370b7
commit e2bf41ddd9
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ public class Platform extends processing.app.Platform {
// for Java 1.6, replacing with java.awt.Desktop.browse()
// and java.awt.Desktop.open()
if (url.startsWith("http://")) { // browse to a location
if (url.startsWith("http")) { // browse to a location
Method browseMethod =
desktopClass.getMethod("browse", new Class[] { URI.class });
browseMethod.invoke(desktop, new Object[] { new URI(url) });