LinkBrowser

Methods
2
Fields
None

Methods

MethodReturnsDescription
browse(string)()Open url in the user's browser; nothing for an empty or non-http(s) one. A marketplace plugin opens only an https link to oldschool.r…
open(string)()Open a folder of the plugin's own directory (a File's toString(), a .bentobox\... path) in the system's file browser. `ClientPaths.SC…

Method details

browse

browse: (string) -> ()

Open url in the user's browser; nothing for an empty or non-http(s) one. A marketplace plugin opens only an https link to oldschool.runescape.wiki, runescape.wiki or runescape.com (or a subdomain of one), at once, and raises for any other.

open

open: (string) -> ()

Open a folder of the plugin's own directory (a File's toString(), a .bentobox\... path) in the system's file browser. ClientPaths.SCREENSHOT_DIR (and a folder in it) opens the screenshot folder imageCapture saves to. Nothing outside the two opens: a drive or root path raises, and a path that is not a folder in them (.. or a drive in it included) opens nothing.