mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 03:17:03 +05:30
bug: pass UrlLauncher type to LocalUrlLauncher
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
This commit is contained in:
parent
9517531388
commit
c5360f264f
2 changed files with 2 additions and 2 deletions
|
@ -2,4 +2,4 @@ package dev.msfjarvis.lobsters.ui.urllauncher
|
||||||
|
|
||||||
import androidx.compose.runtime.staticCompositionLocalOf
|
import androidx.compose.runtime.staticCompositionLocalOf
|
||||||
|
|
||||||
val LocalUrlLauncher = staticCompositionLocalOf { error("Needs to be provided") }
|
val LocalUrlLauncher = staticCompositionLocalOf<UrlLauncher> { error("Needs to be provided") }
|
|
@ -3,7 +3,7 @@ package dev.msfjarvis.lobsters.ui.urllauncher
|
||||||
import java.awt.Desktop
|
import java.awt.Desktop
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
|
||||||
class JVMLocalLauncherImpl() : UrlLauncher {
|
class JVMUrlLauncherImpl() : UrlLauncher {
|
||||||
override fun launch(url: String) {
|
override fun launch(url: String) {
|
||||||
val desktop = Desktop.getDesktop()
|
val desktop = Desktop.getDesktop()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue