Hello, I've a question.  When token is null,  the ...
# android
h
Hello, I've a question.  When token is null,  the body of if doesn't work.  What is the reason?
Copy code
binding.webViewId.evaluateJavascript(
                        "javascript:window.localStorage.getItem('token')") {
                        Log.e("onPageFinished", it)
                    
                        if (it == null) {
                            Log.d("onPageFinished", "token==null")
                            startActivity(Intent(this@HomeActivity, MainActivity::class.java))
                        } 
                    }
blob shrug 1