Join Slack
Powered by
<https://developer.mozilla.org/en-US/docs/Web/API/...
# javascript
p
Pitel
07/23/2021, 8:10 AM
https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection
any idea why
kotlinx.browser.window
does not have this method?
b
Big Chungus
07/23/2021, 8:15 AM
kotlinx.browser is generated from schema, so probably it was missing in the schema they were using. Worth raising it as a bug. In the meanwhile you can always use
window.asDynamic().getSelection()
e
ephemient
07/23/2021, 8:15 AM
the schemas that the kotlinx.browser generator pulls from:
https://github.com/Kotlin/kotlinx-browser/blob/master/generator/src/main/kotlin/download.kt
ephemient
07/23/2021, 8:16 AM
would likely be an easy patch but kotlinx.browser isn't very active
4
Views
Open in Slack
Previous
Next