Skip to content

Commit

Permalink
Revert "Implement ClipboardManager_getText for js (#690)" (#691)
Browse files Browse the repository at this point in the history
This reverts commit 2147b0e.
  • Loading branch information
dima-avdeev-jb authored Apr 18, 2023
1 parent 2147b0e commit 7cdd091
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions skiko/src/jsMain/kotlin/org/jetbrains/skiko/Actuals.js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ internal actual fun ClipboardManager_setText(text: String) {
}

internal actual fun ClipboardManager_getText(): String? {
var clipboardText: String? = null
kotlinx.browser.window.navigator.clipboard.readText().then {
clipboardText = it
}.catch {
clipboardText = null
}
return clipboardText
// TODO("implement ClipboardManager_getText")
// kotlinx.browser.window.navigator.clipboard.readText()
return null
}

internal actual fun ClipboardManager_hasText(): Boolean = !ClipboardManager_getText().isNullOrEmpty()
Expand Down

0 comments on commit 7cdd091

Please sign in to comment.