mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
By using syntax like file://./docs/index.html, editor will open file index.html stored in folder SKETCH_FOLDER/docs/. Fixes #224
This commit is contained in:
@ -1006,7 +1006,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
@Override
|
||||
public void hyperlinkUpdate(HyperlinkEvent hyperlinkEvent) {
|
||||
try {
|
||||
platform.openURL(hyperlinkEvent.getURL().toExternalForm());
|
||||
platform.openURL(sketch.getFolder(), hyperlinkEvent.getURL().toExternalForm());
|
||||
} catch (Exception e) {
|
||||
Base.showWarning(e.getMessage(), e.getMessage(), e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user