Skip to content

Commit

Permalink
[179] modify display urlLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
akidon0000 committed Mar 17, 2024
1 parent b797191 commit 262bebb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions univIP/Module/Web/WebViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,9 @@ final class WebViewModel: BaseViewModel<WebViewModel>, WebViewModelInterface {

input.urlPendingLoad
.subscribe { url in
guard let url = url.element,
let host = url.host else {
guard let url = url.element else {
return
}
AKLog(level: .DEBUG, message: "URL: \(url)")
urlLabel.accept(host.description)

if URLCheckers.isUniversityServiceTimeoutURL(at: url.absoluteString) {
reloadLoginURLInWebView.accept(Void())
Expand All @@ -127,9 +124,12 @@ final class WebViewModel: BaseViewModel<WebViewModel>, WebViewModelInterface {
input.urlDidLoad
.subscribe { url in
guard let url = url.element,
let host = url.host,
let canExecuteJavascript = state.canExecuteJavascript.value else {
return
}
urlLabel.accept(host.description)
AKLog(level: .DEBUG, message: "urlDidLoad: \(url)")

if URLCheckers.isSkipReminderURL(at: url.absoluteString) {
skipReminderJavaScriptInjection.accept(Void())
Expand Down

0 comments on commit 262bebb

Please sign in to comment.