Skip to content

Commit

Permalink
fix: reload only if lastPath set
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Nov 22, 2021
1 parent 943fbf9 commit 5627e21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
guard let bridge = self.bridge else { return }

if let vc = bridge.viewController as? CAPBridgeViewController {
vc.setServerBasePath(path: implementation.getLastPath())
let path = implementation.getLastPath()
if (path != "") {
vc.setServerBasePath(path: implementation.getLastPath())
}
}
call.resolve()
}
Expand Down

0 comments on commit 5627e21

Please sign in to comment.