mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-09-12 11:14:22 +00:00
continue to try to add wasm target
This commit is contained in:
8
common/src/wasmJsMain/kotlin/OpenLink.kt
Normal file
8
common/src/wasmJsMain/kotlin/OpenLink.kt
Normal file
@@ -0,0 +1,8 @@
|
||||
package dev.inmo.micro_utils.common
|
||||
|
||||
import kotlinx.browser.window
|
||||
|
||||
fun openLink(link: String, target: String = "_blank", features: String = "") {
|
||||
window.open(link, target, features) ?.focus()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user