Skip to content

Commit

Permalink
fix: ios build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed May 6, 2023
1 parent 40a8422 commit d7c0552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tauri/mobile/ios-api/Sources/Tauri/Invoke.swift
Expand Up @@ -73,7 +73,7 @@ let CHANNEL_PREFIX = "__CHANNEL__:"

public func getChannel(_ key: String) -> Channel? {
let channelDef = getString(key, "")
if channel.starts(with: CHANNEL_PREFIX) {
if channelDef.starts(with: CHANNEL_PREFIX) {
let index = channelDef.index(channelDef.startIndex, offsetBy: CHANNEL_PREFIX.count)
guard let callback = UInt64(channelDef[index...]) else {
return nil
Expand Down

0 comments on commit d7c0552

Please sign in to comment.