Uses 1113K of libraries. Click here for Pure Java version (8362L/43K).
!7 cmodule2 StartFirefox > DynSingleFunctionWithPrintLog { switchable S homePage = "https://gazelle.rocks"; Bool mainMethodWorks; Bool fallbackWorks; JComponent makeButtons() { ret hgridWithMargin(super.makeButtons(), jbutton("Fallback", rEnterThread fallback)); } void doIt { print("Trying Firefox"); firefox(homePage); print("Did this work? Else try the fallback."); } void fallback { print("Falling back to default browser"); openPlatformBrowser(homePage); } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031792 |
| Snippet name: | Start Firefox |
| Eternal ID of this version: | #1031792/4 |
| Text MD5: | fe676225f8fd57ff088c1e3afbb57001 |
| Transpilation MD5: | b08375c2f80141d400bbf9ac17d540c8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-30 01:38:53 |
| Source code size: | 544 bytes / 23 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 337 / 3330 |
| Version history: | 3 change(s) |
| Referenced in: | -