File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
feature_profile/src/main/java/com/my/kizzy/feature_profile/ui Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ import android.webkit.WebView
21
21
import android.webkit.WebViewClient
22
22
import androidx.compose.runtime.Composable
23
23
import androidx.compose.ui.viewinterop.AndroidView
24
- import com.my.kizzy.feature_profile.ui.login.JS_SNIPPET
24
+
25
+ const val JS_SNIPPET =
26
+ " javascript:(function()%7Bvar%20i%3Ddocument.createElement('iframe')%3Bdocument.body.appendChild(i)%3Balert(i.contentWindow.localStorage.token.slice(1,-1))%7D)()"
25
27
26
28
@SuppressLint(" SetJavaScriptEnabled" )
27
29
@Composable
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ import com.my.kizzy.preference.Prefs.TOKEN
29
29
import com.my.kizzy.ui.components.BackButton
30
30
import kotlinx.coroutines.launch
31
31
32
- const val JS_SNIPPET =
33
- " javascript:(function()%7Bvar%20i%3Ddocument.createElement('iframe')%3Bdocument.body.appendChild(i)%3Balert(i.contentWindow.localStorage.token.slice(1,-1))%7D)()"
34
-
35
32
@OptIn(ExperimentalMaterial3Api ::class )
36
33
@SuppressLint(" SetJavaScriptEnabled" )
37
34
@Composable
You can’t perform that action at this time.
0 commit comments