kwebio / kweb-core

A Kotlin web framework
https://docs.kweb.io/book
GNU Lesser General Public License v3.0
969 stars 57 forks source link

Working with the repository #622

Open Xprofi opened 5 months ago

Xprofi commented 5 months ago

LocalStorage, sessionStorage working with the repository only through a JS call?

  fun saveToken(token: String){
        browser.callJsFunction(
            """
                SessionStorage.setItem('token', '$token'); 
            """.trimIndent()
        )
    }

Or did I not find the implementation in the framework?