Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Nov 25, 2021
1 parent 4383cdd commit b3f8e86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ extension URL {
@objc public func getLastPathPersist() -> String {
return lastPathPersist
}
@objc public func reser() {
@objc public func reset() {
lastPathHot = ""
lastPathPersist = ""
}
Expand Down
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {

@objc func current(_ call: CAPPluginCall) {
let pathHot = implementation.getLastPathHot()
let current = pathHot.length >= 10 ? pathHot.suffix(10) : "default"
let current = pathHot.count >= 10 ? pathHot.suffix(10) : "default"
call.resolve([
"current": current
])
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-updater",
"version": "1.0.13",
"version": "1.0.14",
"license": "AGPL-3.0-only",
"description": "Download app update from url",
"main": "dist/plugin.cjs.js",
Expand Down

0 comments on commit b3f8e86

Please sign in to comment.