Skip to content

Commit

Permalink
Fix typo wirte -> write
Browse files Browse the repository at this point in the history
  • Loading branch information
jas0ncn authored and yichengchen committed Oct 24, 2018
1 parent a5a9c5a commit 6e2ca9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ClashX/General/JSBridgeHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class JsBridgeHelper {
responseCallback?(configStr)
}

bridge.registerHandler("wirteConfigWithString") {(anydata, responseCallback) in
bridge.registerHandler("writeConfigWithString") {(anydata, responseCallback) in
if let str = anydata as? String {
if (FileManager.default.fileExists(atPath: kConfigFilePath)) {
try? FileManager.default.removeItem(at: URL(fileURLWithPath: kConfigFilePath))
Expand Down

0 comments on commit 6e2ca9a

Please sign in to comment.