Skip to content

Commit

Permalink
Fix code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JingMatrix committed Apr 7, 2023
1 parent f6695c9 commit 93e80ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/org/matrix/chromext/hook/UserScript.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object UserScriptHook : BaseHook() {
} else if (!url.endsWith("/ChromeXt/")) {
proxy!!.didUpdateUrl(url)
}
TabModel.refresh(url)
TabModel.refresh()
}

findMethod(proxy!!.tabWebContentsDelegateAndroidImpl) { name == "addMessageToConsole" }
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/matrix/chromext/proxy/TabModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object TabModel {
return UserScriptHook.proxy!!.parseUrl(getTab().invokeMethod { name == "getUrl" }!!) ?: ""
}

fun refresh(newUrl: String) {
fun refresh() {
eruda_loaded.put(index(), false)
}

Expand Down

0 comments on commit 93e80ec

Please sign in to comment.